ReflectionClass::getConstants

( excerpt from http://php.net/manual/en/reflectionclass.getconstants.php )

Description

public function getConstants(): array<string,mixed>

( excerpt from http://php.net/manual/en/reflectionclass.getconstants.php )

Gets defined constants from a class. Warning: This function is currently not documented; only its argument list is available.

Return Values

  • array - An array of constants. Constant name in key, constant value in value.