The following are some common PHP system constants:
__file__ Current PHP file name
__line__ the number of rows in the current PHP file
__FUNCTION__ the currently executing function
__class__ the class currently being executed
Php_version version of PHP
Php_os the current server's operating system
True with True
False with False
E_error to the nearest error point
E_warning to the nearest warning point.
E_parse syntax has a wrong place
E_notice There are exceptions in the PHP language
M__PI Pi
M__e Scientific constant E
M__LOG2E logarithm of base e of 2
m_log10e logarithm of base e of 10
Natural logarithm of M_LN2 2
Natural logarithm of M_ln10 10
The contents of the PHP system constants are introduced here, we hope to help.
http://www.bkjia.com/PHPjc/446022.html www.bkjia.com true http://www.bkjia.com/PHPjc/446022.html techarticle Some common PHP system constants are as follows: __file__ current PHP file name __line__ The number of rows currently in PHP __function__ the currently executing function __class__ the currently executing class P ...