define ("ONE", "Vi khong hang no 1");
define ("TWO2", "Vi du dang hang noi le 2");
define ("THREE_3", "travel to the cave without 3")
// Vi du dang hang hop hop
define ("2TWO", "Vi khong hang no 1");
define ("__ THREE__", "Vi khong hang no 2)";
PHP provides a large number of predefined constants so that any script can use it.
There are 5 magic constants, depending on where they are used. For example, the value of __LINE__ depends on the line it is used in your script. These special constants are case-sensitive.
The following table lists some magic constants in PHP:
Name Description __LINE__ Current line of file __FILE__ Full path and full file name. If used within an include, the name of the included file will be returned. Since PHP 4.0.2, __FILE__ always has an absolute path, while in older versions they contain relative paths in some cases __FUNCTION__ Name of function. (Added in PHP 4.3.0) As in PHP 5, this constant returns the name of the function as it was previously declared (case sensitive). In PHP 4, its value is always lowercase __CLASS__ Name of the class. (Added in PHP 4.3.0) As in PHP 5, this constant returns the name of the class as it was previously declared (case sensitive). In PHP 4 its value is always lowercase __METHOD__ Class method name. (Added in PHP 5.0.0) This method name is returned as previously declared (case sensitive).Follow tutorialspoint
Last lesson: What is PHP?
Next lesson: Operator in PHP