$prop; } elseif (is_array($obj)) { if (array_key_exists($prop, $obj)) { return $obj[$prop]; } } return NULL; } }