ReflectionClass::getConstants

( excerpt from http://php

Description

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

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.