Documentación offline PHP master

ReflectionConstant::__construct

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

ReflectionConstant::__construct

Construye un ReflectionConstant

Descripción#

php public ReflectionConstant::__construct(string $name)php

Construye un nuevo objeto ReflectionConstant.

Parámetros#

name
El nombre de la constante.

Errores/Excepciones#

Se lanza una ReflectionException si la constante no existe.

Véase también#

Constructores