Predefined function reference

get_object_property

A reference entry for get_object_property

Predefined function · core

get_object_property(object o, string property) ⇒ mixed

Returns the value of a property within an object using its name.

Notes

This function can only access a public property of an object. An attempt to access a property that is declared protected or private will return null.