ReflectionClass::getReflectionConstant

Gets a ReflectionClassConstant for a class's constant

Description

public ReflectionClassConstantfalse ReflectionClass::getReflectionConstant(string $name)

Gets a ReflectionClassConstant for a class's constant.

Parameters

name

The class constant name.

Return Values

A ReflectionClassConstant, or false on failure.

See Also

  • ReflectionClass::getReflectionConstants
  • ReflectionClassConstant