Skip to content

Instantly share code, notes, and snippets.

@mjuhl
Created November 14, 2012 17:24
Show Gist options
  • Save mjuhl/4073479 to your computer and use it in GitHub Desktop.
Save mjuhl/4073479 to your computer and use it in GitHub Desktop.
PHP print_r then die snippet
<snippet>
<content><![CDATA[
print '<pre>';
print_r($0);
print '</pre>';
die();]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>printr</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
<description>pretty print_r, then die</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment