PHP 8.2.32 Released!

ReflectionConstant::__construct

(PHP 8 >= 8.4.0)

ReflectionConstant::__constructConstructs a ReflectionConstant

Description

public function 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

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /