get_class_methods() function returns an array of methods defined by the class specified by class_name.
//The syntax is: array get_class_methods (string class_name)
//Retrieving the set of methods available to a particular class
<?
class Airplane {
var $wingspan;
function Airplane(){
}
function __toString(){
}
}
$cls_methods = get_class_methods(Airplane);
print_r($cls_methods);
?>
Related examples in the same category