PHP - Manual: ReflectionClassConstant::getModifiers
2024-12-21
(PHP 7 >= 7.1.0, PHP 8)
ReflectionClassConstant::getModifiers — Gets the class constant modifiers
Returns a bitfield of the access modifiers for this class constant.
此函数没有参数。
A numeric representation of the modifiers. The actual meaning of these modifiers are described under predefined constants.
官方地址:https://www.php.net/manual/en/reflectionclassconstant.getmodifiers.php