Created
March 12, 2011 23:26
-
-
Save tokudu/867688 to your computer and use it in GitHub Desktop.
A function to pretty print a associative array 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
<?php | |
function debug($var = false) { | |
echo "\n<pre style=\"background: #FFFF99; font-size: 10px;\">\n"; | |
$var = print_r($var, true); | |
echo $var . "\n</pre>\n"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is awesome! thanks :)