php define

WBOY
Release: 2016-08-08 09:27:44
Original
1036 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template