?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 en_osztalyom {/ / konstruktor function en_osztalyom() {return(TRUE);} / / 1. metódus function en_methodusom1() {return(TRUE);} / / 2. metódus function en_methodusom2() {return(TRUE);}} $en_objektumom = new en_osztalyom(); $methodus_nevek = get_class_methods(get_class($en_objektumom)); foreach ($metodus_nevek as $metodus_nev) {echo "$metodus_nev\n";}?