best self written PHP function. ever.

by Thomas Hambach

Okay, maybe I’m overrating it, but I still love it for debugging purposes… unless you are using the CLI.

[snippet]
function pre($array)
{
echo ‘<pre>’;
echo print_r($array);
echo ‘</pre>’;
}
[/snippet]