Summary of commonly used PHP system constants_PHP tutorial

WBOY
Release: 2016-07-15 13:33:49
Original
1018 people have browsed it

The following are some commonly used PHP system constants:

__FILE__ current PHP file name

__LINE__ in the current PHP file Number of lines

__FUNCTION__ Currently executed function

__CLASS__ Currently executed class

PHP_VERSION PHP version

PHP_OS Current server operating system

TRUE Same as true

FALSE Same as false

E_ERROR Go to the nearest error location

E_WARNING Go to the nearest warning location

E_PARSE Syntax error There is an exception in

E_NOTICE in PHP language

M__PI Pi

M__E Scientific constant e

M__LOG2E Logarithm of e with base 2

M_LOG10E The logarithm of e with base 10

M_LN2 The natural logarithm of 2

M_LN10 The natural logarithm of 10

The content of PHP system constants is introduced Here, I hope it will be helpful to everyone.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446022.htmlTechArticleThe following are some commonly used PHP system constants: __FILE__ Current PHP file name__LINE__ Number of lines in the current PHP file_ _FUNCTION__ The currently executed function __CLASS__ The currently executed class P...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!