Re: parsing objects

From: Date: Thu, 21 Dec 2006 22:18:22 +0000
Subject: Re: parsing objects
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-246136@lists.php.net to get a copy of this message
# manager@phidot.com / 2006-12-21 18:06:28 +0200: > Hello > > I have a soap call that returns something like; > > Result from a print_r(); > > stdClass Object ( [getCategoryTreeReturn] => Array ( [0] => stdClass Object > ( [iId] => 1 [sName] => Cars & Motorbikes [iParentId] => 0 [iTreeCount] => > 114302 [iLocalCount] => 0 [aSubCats] => Array ( [0] => stdClass Object ( > [iId] => 2 [sName] => Car Electronics [iParentId] => 1 [iTreeCount] => 0 > [iLocalCount] => 0 ) [1] => stdClass Object ( [iId] => 5 [sName] => Car > Accessories [iParentId] => 1 [iTreeCount] => 57160 [iLocalCount] => 57142 ) > [2] => stdClass Object ( [iId] => 16 [sName] => Motorcycles [iParentId] => 1 > [iTreeCount] => 11 [iLocalCount] => 0 ) > > I need to convert that to a multidimensional array to link ID's to Parent > ID's. What makes you think so? -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#246136) next »