If i have a php object:
stdClass Object ( [userAttributes] => stdClass Object ( [dog] => stdClass Object ( [type] => Canine [required] => * [options] => [size] => ) [cat] => stdClass Object ( [type] => Feline [required] => * [options] => [size] => ) ) ) without doing a foreach loop, is it possible to print the value of the children of userAttributes. I want to print "dog" and "cat".
if this was an array:
$userAttributes['dog'] = array('type'=>'Canine'.....); i could do key($userAttributes) and get the word dog. is there a php function that does the same thing as key on objects?