get_object_vars
PHP 4, PHP 5, PHP 7, PHP 8
get_object_vars - Gets the properties of the given object
Code Examples
Example #1 Use of get_object_vars
Result: array(2) {
["b"]=>
int(1)
["c"]=>
NULL
}
array(4) {
["a"]=>
NULL
["b"]=>
int(1)
["c"]=>
NULL
["d"]=>
NULL
}