Created
November 13, 2014 20:52
-
-
Save ulinaaron/89f9a59f8c5829f87df9 to your computer and use it in GitHub Desktop.
Pretty Dump
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 Var Dump | |
*/ | |
function pvar($var, $color = '#FFF') { | |
echo '<pre style="color: ' . $color . ';">'; | |
echo var_dump($var); | |
echo '</pre>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment