|
defineDefines a named constant Description
bool define(string
$constant_name , mixed $value , bool $case_insensitive = false )Defines a named constant at runtime. Parameters
Return Values
Returns Changelog
Examples
Example #1 Defining Constants
Example #2 Constants with Reserved Names This example illustrates the possibility to define a constant with the same name as a magic constant. Since the resulting behavior is obviously confusing, it is not recommended to do this in practise, though.
The above example will output: bool(false) bool(true) string(4) "test" int(5) |