ReflectionClass::getConstant

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

public function getConstant(
  string $name,
): mixed;

Gets the defined constant. Warning: This function is currently not documented; only its argument list is available.

Parameters

  • string $name

Returns

  • mixed - Value of the constant, or FALSE if it doesn't exist