get_object_vars

PHP 4, PHP 5, PHP 7, PHP 8
get_object_vars - Gets the properties of the given object
Manual
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 }
PHP Version:


Function get_object_vars:

Class/Object Information Functions

Most used PHP functions