How to get name of calling function/method in PHP?
<p>I am aware of function <code>debug_backtrace</code>, but I am looking for some ready to use implementation of function like <code>GetCallingMethodName()</code>? It would be perfect if it gave method's class too (if it is indeed a method).</p>

<p>I hope it (not doing it myself) want be taken as normal laziness, but as good programming laziness.</p>

<p><strong>EDIT:</strong> Here is the answer:
<a href="http://stackoverflow.com/questions/190421/caller-function-in-php-5/190426#190426">http://stackoverflow.com/questions/190421/caller-function-in-php-5/190426#190426</a></p>
