get_class_vars
PHP 4, PHP 5, PHP 7, PHP 8
get_class_vars - Get the default properties of the class
Manual
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.