Is there a get_method() function in PHP? <p>In one class I call $this->view() which will be handled by its extended class. But how can I get the name of the method in the parent view();</p> <p>To make it somewhat clearer:</p> <pre><code>&lt;?php class UsersController extends Controller public function signup() { $this-&gt;view(); } } class Controller { public function view() { // How can I get 'signup' so that I can include 'views/Users/signup.php' } } ?&gt; </code></pre>