ReflectionClass::getConstants
Gets constants
Description
public array ReflectionClass::getConstants(intnull $filter
= null
)
Parameters
-
filter
-
The optional filter, for filtering desired constant visibilities. It's configured using
the ReflectionClassConstant constants,
and defaults to all constant visibilities.
Return Values
An array of constants, where the keys hold the name
and the values the value of the constants.
See Also
- ReflectionClass::getConstant