ReflectionEnum::hasCase列挙型が case を持つかを調べる 説明
public bool ReflectionEnum::hasCase(string
$name )指定された case が列挙型に定義されているかを判定します。 パラメータ
戻り値
case が定義されていたら 例
例1 ReflectionEnum::hasCase の例
<?php 上の例の出力は以下となります。 bool(true) bool(false) |