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

get_class_vars()

get_class_vars - Get the default properties of the class

Syntax

array get_class_vars (string $class_name)

Arguments

  • class_name - The class name

Description

Get the default properties of the given class.

Version

PHP 4, 5

Return value

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.