get function name that called function without arguments
<p>I have a class <code>admin_model</code> with the private method <code>admin_form()</code></p>

<p>There are a number of other public functions that call this method.</p>

<p>Is there a way to get the name of the function that called <code>admin_form()</code> from INSIDE <code>admin_form()</code>?</p>

<p>I could easily add an argument when calling <code>admin_form()</code> like:</p>

<pre><code>$this -&gt; admin_form(__FUNCTION__);
</code></pre>

<p>then inside <code>admin_form($caller)</code> I have the caller. It will be <code>$caller</code></p>

<p>But i was hoping there was a way to do this WITHOUT passing arguments.</p>

<p>Any Ideas??</p>

<p>Cheers, 
Alex</p>
