get_class_vars

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

Example #1 get_class_vars example

Result: var1 : var2 : xyz var3 : 100
PHP Version:

Example #2 get_class_vars and scoping behaviour

Result: // 5.0.0 a| * b| TestCase c a| * b| TestCase c // 5.0.1 - 5.0.2 a|b|c a|b|c // 5.0.3 + a|b|c a
PHP Version:


Function get_class_vars:

Class/Object Information Functions

Most used PHP functions