get_class_vars

PHP 4, PHP 5, PHP 7, PHP 8
get_class_vars - Get the default properties of the class
Manual
Code Examples

get_class_vars( string$class ): array

Get the default properties of the given class.

Parameters

class

The class name

Return Values

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.

Related Functions

Example of get_class_vars

Show all examples for get_class_vars

PHP Version:


Function get_class_vars:

Class/Object Information Functions

Most used PHP functions