ReflectionClass::getConstant
Pobiera zdefiniowaną stała
&reftitle.description;
public mixedReflectionClass::getConstant
stringname
Pobiera zdefiniowaną stała.
&reftitle.parameters;
name
Nazwa stałej klasy do pobrania.
&reftitle.returnvalues;
Nazwa stałej o nazwie name.
Zwraca &false; jeśli stała nie została znaleziona dla użytej klasy.
&reftitle.examples;
Użycie ReflectionClass::getConstant
getConstant('C1'));
var_dump($reflection->getConstant('C2'));
var_dump($reflection->getConstant('C3'));
?>
]]>
&example.outputs;
&reftitle.seealso;
ReflectionClass::getConstants