This is just a simple little wrapper I always use in development for print_r(). I hate how it is just an enormous string of text, so I just wrap it in pre tags.
PHP Code:
function print_arr($array)
{
echo '<pre>';
echo print_r($array);
echo '</pre>';
}
Simple, useful.