php8.5
Home/ Manual/ reference / reflection/ The ReflectionConstant class

The ReflectionConstant class

The ReflectionConstant class reports information about a global constant.

Intro

The ReflectionConstant class reports information about a global constant.

Class synopsis

class ReflectionConstant implements Reflector { }

Properties

name

Name of the constant. Read-only, throws ReflectionException in attempt to write.

Changelog

VersionDescription
8.5.0The class is no longer final.

See Also

  • ReflectionClassConstant

Reflectionconstant

In this section

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