property_exists
Checks if the object or class has a property
&reftitle.description;
boolproperty_existsmixedclassstringproperty
This function checks if the given property exists in
the specified class.
As opposed with isset,
property_exists returns &true; even if the property
has the value &null;.
&reftitle.parameters;
class
The class name or an object of the class to test for
property
The name of the property
&reftitle.returnvalues;
Returns &true; if the property exists, &false; if it doesn't exist or
&null; in case of an error.
&reftitle.notes;
¬e.uses-autoload;
The property_exists function cannot detect properties
that are magically accessible using the __get
magic method.
&reftitle.changelog;
&Version;&Description;5.3.0
This function checks the existence of a property independent of
accessibility.
&reftitle.examples;
A property_exists example
]]>
&reftitle.seealso;
method_exists