Skip to content

Instantly share code, notes, and snippets.

@dazz
Created September 25, 2013 14:40
Show Gist options
  • Save dazz/6700610 to your computer and use it in GitHub Desktop.
Save dazz/6700610 to your computer and use it in GitHub Desktop.
pretty print
function print_pre($var, $doDie = true) {
echo "<pre>";
print_r($var);
echo "</pre>";
if ($doDie) {
die('i-die');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment