Function
get_object_vars
Synopsis
get_object_vars(mixed): array
- Area
Runtime\PS\Core\Reflect\get_object_varsareas
Description
get_object_vars returns the properties of $object as an array, in the order the object reads them back. A non-object returns an empty array.
A value a binding returned answers with its exported Go fields, the field set print_r and var_dump report for it. A throwable answers with none: every php throwable declares its properties protected, a script outside the class reads nothing off one, and the fields this runtime keeps on its own Go type are no property a script may name.
Usage
$value = get_object_vars($arguments);
$fn = get_object_vars(...);