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