Return the value of a constant:
The constant() function returns the value of a constant.
Note: This function also works with class constants.
Parameter | Description |
---|---|
constant | Required. Specifies the name of the constant to check |
Return Value: | Returns the value of a constant, or NULL if the constant is not defined |
---|---|
PHP Version: | 4+ |