Created
January 14, 2014 09:11
-
-
Save getanwar/8415415 to your computer and use it in GitHub Desktop.
PHP: function pretty-print_r (ppr)
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
//custom function for showing print_r() result decorated on browser | |
function ppr($var) { | |
echo "<pre style='font-size:16px;'>"; | |
print_r($var); | |
echo "</pre>"; | |
} | |
//ppr($var); //call this instead of print_r($var); don't forget to replace $var with your array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment