PHP get_class_methods Function usage
The purpose of the Get_class_methods function is to return an array of the method names of the class. This article will briefly share the relevant usage of the function.
Function prototype array get_class_methods (mixed $class _name)
Returns an array of the method names that are defined in the class specified by Class_name. If an error occurs, NULL is returned.
Note: Starting with PHP 4.0.6, you can specify the object itself instead of class_name. The specific examples used by Get_class_methods () are as follows:
';}
The example above will output:
MyClass
Myfunc1
Myfunc2
Attention:
Since PHP 5, this function is returned (case-sensitive) according to the name defined by the method. In PHP 4, the lowercase is always returned.
Articles you may be interested in
- PHP uses the Session_set_save_handler () function to save the session to the MySQL database
- function and usage of PHP get_headers functions
- PHP Simulation get_headers function
- Comparison of performance efficiency of file_get_contents to curl in PHP
- PhpMyAdmin cannot start session without errors error resolution
- PHP get_headers to determine if the URL is valid
- To get a function of a class_id collection
- PHP mktime Function Analysis
http://www.bkjia.com/PHPjc/906826.html www.bkjia.com true http://www.bkjia.com/PHPjc/906826.html techarticle PHP get_class_methods function Usage The Get_class_methods function is to return an array of the method names of the class. This article will briefly share the relevant usage of the function. Function ...