get_mangled_object_vars
PHP 7 >= 7.4.0, PHP 8
get_mangled_object_vars - Returns an array of mangled object properties
Manual
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.
Parameters
- object
-
An object instance.
Return Values
Returns an array containing all properties, regardless of visibility, of object.