Constructs a ReflectionConstant

# ReflectionConstant::__construct

(PHP 8 >= 8.4.0)

ReflectionConstant::__construct — Constructs a ReflectionConstant

### 说明

public function ReflectionConstant::__construct(string `$name`)

Constructs a new ReflectionConstant object.

### 参数

`name`
  The name of the constant.

### 错误／异常

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

### 参见

- Constructors

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open