ReflectionClass::getConstant
Gets defined constant
&reftitle.description;
public mixedReflectionClass::getConstant
stringname
Gets the defined constant.
&warn.undocumented.func;
&reftitle.parameters;
name
The name of the class constant to get.
&reftitle.returnvalues;
Value of the constant with the name name.
Returns &false; if the constant was not found in the class.
&reftitle.examples;
Usage of ReflectionClass::getConstant
getConstant('C1'));
var_dump($reflection->getConstant('C2'));
var_dump($reflection->getConstant('C3'));
?>
]]>
&example.outputs;
&reftitle.seealso;
ReflectionClass::getConstants