Call us Toll-Free:
Email us



Code 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 :-)


function printR($var)
print "
print "

Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

Post your comments

Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.

About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions