Skip to content

Instantly share code, notes, and snippets.

@davidchase
Last active August 29, 2015 13:57
Show Gist options
  • Save davidchase/9788606 to your computer and use it in GitHub Desktop.
Save davidchase/9788606 to your computer and use it in GitHub Desktop.
<?php
function lpr($expression) {
$bt = debug_backtrace();
$caller = array_shift($bt);
printf("\n>>> %s:%s > %s\n", $caller['file'], $caller['line'], print_r($expression, true));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment