CakeFest 2024: The Official CakePHP Conference

ReflectionClass::getReflectionConstant

(PHP 7 >= 7.1.0, PHP 8)

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

説明

public ReflectionClass::getReflectionConstant(string $name): ReflectionClassConstant|false

クラスのプロパティの ReflectionClassConstant を取得します。

パラメータ

name

クラス定数の名前

戻り値

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

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top