ReflectionClass::hasConstant
Checks if constant is defined
&reftitle.description;
public boolReflectionClass::hasConstant
stringname
Checks whether the class has a specific constant defined or not.
&reftitle.parameters;
name
The name of the constant being checked for.
&reftitle.returnvalues;
&true; if the constant is defined, otherwise &false;.
&reftitle.examples;
ReflectionClass::hasConstant example
hasConstant("c1"));
var_dump($class->hasConstant("c2"));
?>
]]>
&example.outputs.similar;
&reftitle.seealso;
ReflectionClass::hasMethod
ReflectionClass::hasProperty