Source Code:
(back to article)
<?php function currentFunction() { $bt = debug_backtrace(); return $bt[1]['function']; } function callerFunction() { return currentFunction(); } echo callerFunction();
Result:
Report an issue