Get all the methods in a class

By using the getMethods() function from ReflectionClass you are able to get all the methods in a class.

Simply create an object of the ReflectionClass with one argument, the class name you want to access. Then, use the getMethods() function and assign the result to a variable.

$class_obj = new ReflectionClass('myClass');
$array_of_methods = $class_obj -> getMethods();
var_dump($array_of_methods);