php8.5
Home/ Manual/ reflection / reflectionclassconstant/ ReflectionClassConstant::getModifiers

ReflectionClassConstant::getModifiers

PHP function Edit on GitHub ✎

(PHP 7 >= 7.1.0, PHP 8)

Gets the class constant modifiers

Description

ReflectionClassConstant::getModifiers(): int

Returns a bitfield of the access modifiers for this class constant.

Parameters Parameters

Return Values

A numeric representation of the modifiers. The actual meaning of these modifiers are described under predefined constants.

See Also

  • Reflection::getModifierNames

Source: reference/reflection/reflectionclassconstant/getmodifiers.xml · from the official PHP manual (php/doc-en)