ifconstor Class
Global function to evaluate if a constant is set, or else use default. This is a global function.
$c = ifconstor('MY_CONST', 10);
Constructor
ifconstor
(
Mixed
-
constName
-
[default='']
Parameters:
-
constName
StringThe constant name to check
-
[default='']
Mixed optionalThe default value if the constant isn't defined
Returns:
Mixed:
The value of the constant or the default value