Common PHP System Constants Summary _php Tutorial

Source: Internet
Author: User
Tags natural logarithm

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.