Get the current PHP class names, function names, method names
Get the current PHP class names, method names
__CLASS__ obtain the current class name
__FUNCTION__ current function name (Confirm The)
__METHOD__ current method name (bankcard :: confirm)
__FUNCTION__ function name (PHP 4.3.0 Added). Since this constant returns the name of the function is defined from the 5 PHP (case sensitive). In PHP 4 this value is always lower case letters.
__CLASS__ name of the class (PHP 4.3.0 Added). Since this constant returns the class name is defined as the time from 5 PHP (case sensitive). In PHP 4 this value is always lower case letters.
Method name __METHOD__ class (PHP 5.0.0 Added). When returns the name of the method is defined (case sensitive).
Note: before and after these two constants are underlined.
get_class (class name); // get the class name of the current class statement where
get_class_methods (class name); // get all the way to the class name class name, and make up an array
get_class_vars (class name); // get class name class All brighten name, and the composition of an array
I php CI combat tutorial: [3] Memcached configuration and call _ Baidu experience
http://jingyan.baidu.com/article/9f63fb91d434b4c8410f0e5a.html
Get the current PHP class names, method names
__CLASS__ obtain the current class name
__FUNCTION__ current function name (Confirm The)
__METHOD__ current method name (bankcard :: confirm)
__FUNCTION__ function name (PHP 4.3.0 Added). Since this constant returns the name of the function is defined from the 5 PHP (case sensitive). In PHP 4 this value is always lower case letters.
__CLASS__ name of the class (PHP 4.3.0 Added). Since this constant returns the class name is defined as the time from 5 PHP (case sensitive). In PHP 4 this value is always lower case letters.
Method name __METHOD__ class (PHP 5.0.0 Added). When returns the name of the method is defined (case sensitive).
Note: before and after these two constants are underlined.
get_class (class name); // get the class name of the current class statement where
get_class_methods (class name); // get all the way to the class name class name, and make up an array
get_class_vars (class name); // get class name class All brighten name, and the composition of an array
I php CI combat tutorial: [3] Memcached configuration and call _ Baidu experience
http://jingyan.baidu.com/article/9f63fb91d434b4c8410f0e5a.html