Along the same lines of my previous post, I was looking for a PHP equivalent to Data::Dumper for Perl. Php has a builtin function called var_dump() which will give you some fairly ugly output about your array/hash/object, however I was looking for something a little more elegant.Thankfully the folks over at Pear have come up with a very nice alternative. Simply install the Var_Dump PEAR module and then do:

require_once 'Var_Dump.php';

Var_Dump($my_object);

Alternative you can use the excellent built-in PHP function print_r() which does the same as Var_Dump without all the extra information included:

print_r($my_object);