A function is returning arrays which look like
( [4] => SomeObject )
or
( [2] => SomeObject )
If I know the array will always have only one child how can I access it without knowing the index?
I'm sure PHP has an equivalent to Javascript's getOwnPropertynames
, but I would think there must be a more direct way.
Thanks!