php8.5
Home/ Manual/ reflection / reflectionconstant/ ReflectionConstant::__construct

ReflectionConstant::__construct

PHP function Edit on GitHub ✎

(PHP 8 >= 8.4.0)

Constructs a ReflectionConstant

Description

ReflectionConstant::__construct(string $name)

Constructs a new ReflectionConstant object.

Parameters

name

The name of the constant.

Errors/Exceptions

Throws a ReflectionException in case the given constant does not exist.

See Also

Source: reference/reflection/reflectionconstant/construct.xml · from the official PHP manual (php/doc-en)