How to get name of calling function/method in 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). Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help … Read more