Home > Article > Backend Development > php define
define sets the constant (has three parameters)
1: The first parameter is the name of the constant
2: The second parameter is the value of the constant
3: The optional third parameter specifies whether the constant name is correct in size Write sensitively. The default is false.
Source code:
define("a","this test for define");
echo a;
echo A;
?>
output:
this test for define
A
Source code:
define ("A","A different from a",true);
echo a;
?>
Output:
The above introduces php define, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.