ReflectionClass::getReflectionConstant

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClass::getReflectionConstantクラス定数の ReflectionClassConstant を取得する

説明

publicReflectionClass::getReflectionConstant(string$name): ReflectionClassConstant|false

クラス定数の ReflectionClassConstant を取得します。

パラメータ

name

クラス定数の名前

戻り値

ReflectionClassConstant を返します。 失敗した場合に false を返します

To Top