Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
printRvarCode Wizard, 12-30-2006 |
Quickly use print_r in a friendlier way. Using output buffering is another option or playing with the array itself but this is quick and easy. Surrounding print_r (or var_dump) with <pre> makes it pretty :-)
<?php
function printR($var)
{
print "
<pre>
";
print_r($var);
print "
</pre>
";
}
?>
http://www.php.net/manual/en/function.print-r.php
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments

