dBug is a php library that print a nice-formatted dump of a variable:
include_once("dBug.php"); $variable = array( "first"=>"1", "second", "third"=>array( "inner third 1", "inner third 2"=>"yeah"), "fourth"); new dBug($variable);
Will be formatted like this:
Variable types supported are: Arrays, Objects, Recordsets and XML Resources.