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

[eluser]adityamenon[/eluser]
Well, I've never encountered something like this, but what happens when you do this?

Code:
//$topLevelArray is the main Array() you posted as output
$object = $topLevelArray[1][0]; //you get those keys by using a foreach loop
$artistName = $object->_ARTIST_NAME;

I know you might have tried that, but I'm just curious about what error you got...


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