Menu Samaritan's Purse

GET_OBJECT_VARS

Gets the properties of the given object

SYNTAX

get_object_vars ( object $object ) : array

PARAMETERS

object

An object instance.

RETURN

Returns an associative array of defined object accessible non-static properties for the specified object in scope.

EXAMPLES

Array
(
    [var1] => public
)
Array
(
    [var1] => public
    [var2] => protected
    [var3] => private
)

INTERNAL

get_class_vars

EXTERNAL

PHP