ReflectionEnum::hasCaseChecks for a case on an Enum
&reftitle.description;
publicboolReflectionEnum::hasCasestringname
Determines if a given case is defined on an Enum.
&reftitle.parameters;
name
The case to check for.
&reftitle.returnvalues;
&true; if the case is defined, &false; if not.
&reftitle.examples;
ReflectionEnum::hasCase example
hasCase('Hearts'));
var_dump($rEnum->hasCase('Horseshoes'));
?>
]]>
&example.outputs;
&reftitle.seealso;
EnumerationsReflectionEnum::getCaseReflectionEnum::getCases