valid_id()
valid_id(string $class, integer $value) : boolean
Checks if a value is a valid one in a constant class.
It will intentionally fail when used for a non constant class.
Parameters
| string | $class | Name of the class. |
| integer | $value | Value to check. |
Returns
boolean —True if the value is defined, false otherwise.