Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2016 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

foreach help

Thread title: foreach help
Closed Thread    
    Thread tools Search this thread Display Modes  
12-24-2007, 01:05 PM
#1
getout is offline getout
Status: Junior Member
Join date: Sep 2005
Location:
Expertise:
Software:
 
Posts: 52
iTrader: 0 / 0%
 

getout is on a distinguished road

  Old  foreach help

Hi,

This is print_r of my array

Code:
$xyz = 
Array
(
    [2] => Array
        (
            [options_name] => dfgdf
            [values] => Array
                (
                    [0] => Array
                        (
                            [options_values_id] => 1
                            [options_values_name] => color
                            [options_values_price] => 45.0000
                            [price_prefix] => +
                        )

                )

        )

    [3] => Array
        (
            [options_name] => size
            [values] => Array
                (
                    [0] => Array
                        (
                            [options_values_id] => 2
                            [options_values_name] => 12 inches
                            [options_values_price] => 23.0000
                            [price_prefix] => +
                        )

                    [1] => Array
                        (
                            [options_values_id] => 3
                            [options_values_name] => 14 inches
                            [options_values_price] => 56.0000
                            [price_prefix] => +
                        )

                )

        )

)
I want to loop into all of these items, & convert into xmlrpc variable. can anybody help me achieving this using foreach loop

12-27-2007, 07:48 PM
#2
prasunsen is offline prasunsen
Status: Junior Member
Join date: Dec 2006
Location:
Expertise:
Software:
 
Posts: 52
iTrader: 0 / 0%
 

prasunsen is on a distinguished road

Send a message via ICQ to prasunsen

  Old

You can just use foreach within foreach... I am not sure what exactly is troubling you

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed