Menu Riverview Church

GET_CLASS_VARS

Get the default properties of the class

SYNTAX

get_class_vars ( string $class_name ) : array

PARAMETERS

class_name

The class name

RETURN

Returns an associative array of declared properties visible from the current scope, with their default value. The resulting array elements are in the form of varname => value. In case of an error, it returns FALSE.

EXAMPLES

1

Array
(
    [var1] => default
    [var2] => default
    [var3] => default
)

2

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

INTERNAL

get_object_vars

EXTERNAL

PHP