I have an object BIRD and then there is [0] through [10] and each number has a subheading like \"bug\" or \"beetle\" or \"gnat\" and a value for each of those.
I wan
Similar to brenjt's response, this uses PHP's get_object_vars instead of type casting the object.
get_object_vars
$array = get_object_vars($object); $properties = array_keys($array);