Possible Duplicate:
Get only declared methods of a class in PHP
Is there any way to “scan” all the methods in class and get them returned as strings in array?
Let’s say i have this:
class House {
public function doors(){
// Doors code
}
public function windows()
{
// Windows code
}
}
I would like to get something like this:
$methods = ['doors','windows'];
Any ideas?
Thanks
That is called reflection. Use PHP Reflection