?php class myclass {/ / constructor function myclass() {return(TRUE);} / / method 1 function myfunc1() {return(TRUE);} / / method 2 function myfunc2() {return(TRUE);}} $my_object = new myclass(); $class_methods = get_class_methods(get_class($my_object)); foreach ($class_methods as $method_name) {echo "$method_name\n";}?
?php class myclass {/ / constructeur function maclasse() {return(TRUE);} / / méthode 1 function myfunc1() {return(TRUE);} / / méthode 2 function mafunc2() {return(TRUE);}} $ma_classe = new maclasse(); $class_methods = get_class_methods(get_class($ma_class)); foreach ($class_methods as $method_name) {echo "$method_name\n";}?