how to get name of calling function method in php ¬†using -'php'
I am aware of function debug_backtrace, but I am looking for some ready to use implementation of function like GetCallingMethodName()? It would be perfect if it gave method's class too (if it is indeed a method).
I hope it (not doing it myself) want be taken as normal laziness, but as good programming laziness.
EDIT: Here is the answer: