This article mainly introduces the PHP to obtain, check class name, function name, method name function method, this article summarizes 7 functions and the use of the introduction, the need for friends can refer to the
1.function_exists ()-Return TRUE if the given function has been defined
2.is_callable ()-detects whether the parameter is a valid callable structure
3.class_exists ()-Check whether the class is defined
4.method_exists ()-Checks whether the class's method exists
__function__ function name (PHP 4.3.0 new). From PHP 5 This constant returns the name (case-sensitive) of the function when it is defined. This value is always lowercase in PHP 4.
The name of the __class__ class (PHP 4.3.0 new). From PHP 5 This constant returns the name of the class when it is defined (case-sensitive). This value is always lowercase in PHP 4.
The method name of the __method__ class (PHP 5.0.0 new). Returns the name (case-sensitive) of the method when it is defined.
Note: These constants are preceded by two underscores.
Get_class (class name);//Gets the class name of the class where the current statement is located
Get_class_methods (class name),//Gets all method names of class name classes, and composes an array
Get_class_vars (class name);//gets all the lighter names of class name classes and makes up an array