A better print_r: dBug
dBug is a php library that print a nice-formatted dump of a variable:
PHP:
-
include_once("dBug.php");
-
-
"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.