ReflectionClass::getReflectionConstant()
(PHP 7 >= 7.1.0)
Gets aReflectionClassConstantfor a class's constant
说明
public ReflectionClass::getReflectionConstant(string $name): ReflectionClassConstant
Gets aReflectionClassConstantfor a class's property.
参数
- $name
The class constant name.
返回值
AReflectionClassConstant.
参见
- ReflectionClass::getReflectionConstants() Gets class constants
- ReflectionClassConstant