Created
January 14, 2014 09:09
-
-
Save getanwar/8415391 to your computer and use it in GitHub Desktop.
PHP: function pretty-var_dump (pvd)
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 var_dump() result decorated on browser | |
function pvd($var) { | |
echo "<pre style='font-size:16px;'>"; | |
var_dump($var); | |
echo "</pre>"; | |
} | |
//pvd($var); //call this instead of var_dump($var); don't forget to replace $var with your array |
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 var_dump() result decorated on browser | |
function pvd($var) { | |
echo "<pre style='font-size:16px;'>"; | |
var_dump($var); | |
echo "</pre>"; | |
} | |
//pvd($var); //call this instead of var_dump($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