PHP - Manual: ReflectionClass::getReflectionConstant
2024-12-26
(PHP 7 >= 7.1.0, PHP 8)
ReflectionClass::getReflectionConstant — Gets a ReflectionClassConstant for a class's constant
Gets a ReflectionClassConstant for a class's property.
name
The class constant name.
A ReflectionClassConstant, 或者在失败时返回 false
.
官方地址:https://www.php.net/manual/en/reflectionclass.getreflectionconstant.php