Save output of print_r to variable instead of displaying it
I found this on someone else’s site (at http://www.electrictoolbox.com/return-information-from-php-print-r/) and thought I’d share it here as well. Something I’ve been wondering about for years and never really figured out how to do, was how to save the output of the print_r command to a variable, instead of actually displaying the contents to the screen. As [...]










