Check if a constant exists:
The defined() function checks whether a constant exists.
Parameter | Description |
---|---|
name | Required. Specifies the name of the constant to check |
Return Value: | Returns TRUE if the constant exists, or FALSE otherwise |
---|---|
PHP Version: | 4+ |