get_object_properties()

Not yet in a tagged release

Description

get_object_properties() - get an object's non-static properties

array get_object_properties(object $target, $propTypes = ReflectionProperty::IS_PUBLIC);

Parameters

get_object_properties() takes two parameters:

Return Values

get_object_properties() returns an array of name / value pairs.

If the object has no non-static properties, get_object_properties() returns an empty array.

Throws

get_object_properties() throws an InvalidArgumentException if:

Notes