not able to write code for traversing multidimentional array

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
shivram
Forum Newbie
Posts: 1
Joined: Thu Feb 03, 2011 3:46 am

not able to write code for traversing multidimentional array

Post by shivram »

this is an array returned after parsing YAMl file using spyc api.
i want to write a code to to extract value related to key topic name and put in a separate 1d array say $topicnames

Array ( [1] => Array ( [topicname] => singapore travels [rev] => 250
[0] => Array ( [25] => Array ( ) [topicname] => airlines [rev] => 24 )
[1] => Array ( [35] => Array ( ) [topicname] => shubham [rev] => 65 ) )
[2] => Array ( [topicname] => singapore entertainment [rev] => 210
[0] => Array ( [45] => Array ( ) [topicname] => night safari[rev] => 54 )
i tried using simple for loop but not working..
pl help out.
Post Reply