PHP _ METHOD _ magic constant usage _ PHP Tutorial

Source: Internet
Author: User
PHP _ METHOD _ magic constant usage. This article briefly introduces the usage of METHOD, which is a magic constant only after php5. if you need it, you can refer to it. _ METHOD _ is a new magic constant after PHP5, indicating the usage of METHOD in this article. this magic constant will be available only after php5, for more information, see.

_ METHOD _ is a new magic constant after PHP5, indicating the name of the quasi-grammar.

The code is as follows:

Class chhua {
Function test (){
Echo _ METHOD __;
}
}

$ E = new chhua ();

$ E-> test (); // output: chhua: test


There are more such functions, such as _ isset (), _ unset (), _ sleep (), _ wakeup (), _ toString (), _ invoke (),

_ Set_state () and _ clone () This section does not cover Baidu search.

Bytes. _ METHOD _ is the magic constant added after PHP5, indicating the class text...

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.