Skip to content

Instantly share code, notes, and snippets.

@benzittlau
Created October 11, 2013 19:30
Show Gist options
  • Save benzittlau/6940664 to your computer and use it in GitHub Desktop.
Save benzittlau/6940664 to your computer and use it in GitHub Desktop.
Backtrace in PHP
foreach(debug_backtrace() as $trace) {
echo $trace['file'] . "::" . $trace['function'] . "::" . $trace['line'] . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment