ReflectionClass::getConstant

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

Description

public function getConstant(
  string $name,
): mixed

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

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

Parameters

  • string $name

Return Values

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