Define
(PHP3, PHP4)
Define---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Define a constant name
Syntax: int define (string name, mixed value [, int case_insensitive])
Description:
Define a constant name, similar to a variable, in different places:
The symbol in front of the constant without money ($)
Constants can be accessed anywhere, without regard to variable scope rules
Once the constants are set, they don't need to be defined.
Constants can only be a number of values
The parameter name is the name of the constant, and value is the constant.
If you set the third argument case_insensitive to 1, the constants will be defined as case-insensitive. The presets are case-sensitive, for example: constant and constant represent different values.
Example:
<?php
Define ("CONSTANT", "Hello world.");
Echo CONSTANT; Outputs "Hello world."
?>
Returns true if define () succeeds, and returns False if an error occurs.
Reference: Tabbed ()