Sometimes its useful to show data received / processed through PHP in the browser for debugging purposes. Yes you can use Firebug or some of those fancy debugging classes, but maybe you just want to view that damn array quickly 🙂
Use this:
function dumpMe($arr) { echo str_replace(array("\n", ' '), array(' ', 'Â '), print_r($arr, true)) . ' '; }