ReflectionClass::getReflectionConstant

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

説明

public ReflectionClassConstantfalse ReflectionClass::getReflectionConstant(string $name)

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

パラメータ

name

クラス定数の名前

戻り値

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

参考

  • ReflectionClass::getReflectionConstants
  • ReflectionClassConstant