<p>Is there a PHP function to find out the name of the caller function in a given function?</p>

```
debug_backtrace()
```
supplies details of parameters, function/method calls in the current call stack.