PHP Print keys from an object?
Similar to brenjt's response, this uses PHP's get_object_vars
instead of type casting the object.
$array = get_object_vars($object);
$properties = array_keys($array);
You could easily do it by type casting the object:
$keys = array_keys((array)$BIRD);