Skip to content

Instantly share code, notes, and snippets.

@shameerc
Created December 14, 2010 09:06
Show Gist options
  • Select an option

  • Save shameerc/740168 to your computer and use it in GitHub Desktop.

Select an option

Save shameerc/740168 to your computer and use it in GitHub Desktop.
Simple usage of debug_trace() function
<?php
echo "<pre>";
print_r(array_reverse(debug_backtrace(true)));
echo "</pre>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment