get_object_vars
PHP 4, PHP 5, PHP 7, PHP 8
get_object_vars - Gets the properties of the given object
Manual
get_object_vars(
object$object ): array
Gets the accessible non-static properties of the given object according to scope.
Parameters
- object
-
An object instance.
Return Values
Returns an associative array of defined object accessible non-static properties for the specified object in scope.