Here is a little function which I like to use. For some reason whenever I start a new script I slip back to using just var_dump or print_r and then have to look at the page source if I want to make sense of the output. After growing increasingly frustrated I rewrite this function. Hopefully this post will act as a reminder to me to stop wasting time and will hopefully help someone else as well.
function rprint
($variable) { echo "<pre>";
print_r($variable);
echo "</pre>";
}