Home  >  Article  >  Backend Development  >  php define

php define

WBOY
WBOYOriginal
2016-08-08 09:27:441026browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn