The defined() function checks whether a constant exists.
bool defined ( string $name )
Checks whether the given constant exists and is defined.
Parameter | Description |
---|---|
name | The constant name. |
Returns TRUE if the named constant given by name has been defined, FALSE otherwise.