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 am aware of function debug_backtrace , but I am looking for some ready
Share
The
debug_backtrace()function is the only way to know this, if you’re lazy it’s one more reason you should code theGetCallingMethodName()yourself. Fight the laziness! 😀