ReflectionClass::getConstants Gets constants &reftitle.description; public arrayReflectionClass::getConstants intnullfilter&null; Gets all defined constants from a class, regardless of their visibility. &reftitle.parameters; filter The optional filter, for filtering desired constant visibilities. It's configured using the ReflectionClassConstant constants, and defaults to all constant visibilities. &reftitle.returnvalues; An array of constants, where the keys hold the name and the values the value of the constants. &reftitle.changelog; &Version; &Description; 8.0.0 filter has been added. &reftitle.seealso; ReflectionClass::getConstant