Welcome Guest, Not a member yet? Register   Sign In
PHP stdClass object: getting data throught foreah loop
#4

[eluser]adityamenon[/eluser]
Cheers! By the way, I found another way on StackOverflow today :

Code:
//put your object in place of $object and you might it in array form in $array...
$array = json_decode(json_encode($object), true);

...you might want to check that out too Smile


Messages In This Thread
PHP stdClass object: getting data throught foreah loop - by El Forum - 06-26-2011, 11:49 AM
PHP stdClass object: getting data throught foreah loop - by El Forum - 06-26-2011, 12:58 PM
PHP stdClass object: getting data throught foreah loop - by El Forum - 06-29-2011, 11:15 AM
PHP stdClass object: getting data throught foreah loop - by El Forum - 06-29-2011, 11:23 AM
PHP stdClass object: getting data throught foreah loop - by El Forum - 06-29-2011, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB