PHP 7 >= 7.4.0, PHP 8
get_mangled_object_vars - Returns an array of mangled object properties
Code Examples

get_mangled_object_vars( object$object ): array

Returns an array whose elements are the object's properties. The keys are the member variable names, with a few notable exceptions: private variables have the class name prepended to the variable name, and protected variables have a * prepended to the variable name. These prepended values have NUL bytes on either side. Uninitialized typed properties are silently discarded.



An object instance.

Return Values

Returns an array containing all properties, regardless of visibility, of object.

Related Functions

Example of get_mangled_object_vars

Show all examples for get_mangled_object_vars

PHP Version:

Function get_mangled_object_vars:

Class/Object Information Functions

Most used PHP functions