ReflectionClass::hasProperty
Vérifie si une propriété est définie
&reftitle.description;
public boolReflectionClass::hasProperty
stringname
Vérifie si la propriété spécifiée est définie.
&reftitle.parameters;
name
Le nom de la propriété à vérifier.
&reftitle.returnvalues;
&true; si la propriété est définie, &false; sinon.
&reftitle.examples;
Exemple avec ReflectionClass::hasProperty
hasProperty("p1"));
var_dump($obj->hasProperty("p2"));
var_dump($obj->hasProperty("p3"));
var_dump($obj->hasProperty("p4"));
?>
]]>
&example.outputs.similar;
&reftitle.seealso;
ReflectionClass::hasConstant
ReflectionClass::hasMethod