<?php ini_set('error_reporting', E_ALL); function dump($var, $name='') { echo $name . '<pre>' . print_r($var, true) . '</pre>'; }
info at phpclasses dot org