Created
July 10, 2012 12:52
-
-
Save epixa/3083072 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function blah($foo, $bar) | |
| { | |
| echo implode("\n", array_map(function($step) { | |
| extract($step); | |
| return sprintf('%s(%s) called at [%s:%d]', $function, implode(', ', $args), $file, $line); | |
| }, debug_backtrace())) . "\n"; | |
| }; | |
| function another() | |
| { | |
| blah('lol', 'ok'); | |
| } | |
| another(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment