Name
get_object_vars
Synopsis
array get_object_vars(object object
)
Returns an associative array of the properties for the given
object
. For each property, an element with
a key of the property name and a value of the current value is added
to the array. Properties that do not have current values are not
returned in the array, even if they are defined in the class.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.