Complete PHP Misc Reference
The constant() function returns the value of a constant.
| Parameter | Description |
|---|---|
| constant | Required. Specifies the name of the constant to check |
Note: This function also works with class constants.
The output of the code above will be:
Complete PHP Misc Reference
Your message has been sent to W3Schools.