Last active
May 11, 2017 10:21
-
-
Save jasewarner/624cff4ff91aa7cc2f1bc88906b5bfef to your computer and use it in GitHub Desktop.
Pretty printing in PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pretty printing debugging tool. | |
*/ | |
function pr( $var ) { | |
print '<pre>'; | |
print_r( $var ); | |
print '</pre>'; | |
} | |
// Usage. | |
pr( $var ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment