Using PHP's built in constants function
If it is unknown if a constant had been declared or not, then it is possible to use PHP's built-in constants function. The name of the constant can be provided to it, as a parameter to this function. The result of this operation will be TRUE if this constant had been declared and FALSE otherwise.
Comments
Post a Comment