Home > PHP > Function > Classes/Objects > get_object_vars()

get_object_vars()

get_object_vars - Gets the properties of the given object

Syntax

array get_object_vars (object $object)

Arguments

  • object - An object instance.

Description

Gets the accessible non-static properties of the given object according to scope.

Version

PHP 4, 5

Return value

Returns an associative array of defined object accessible non-static properties for the specified object in scope. If a property have not been assigned a value, it will be returned with a NULL value.