If you ever need to display the content of arrays or objects or any other data for that matter I have developed a function to dump the data
with syntax highlighting, indenting, variable type etc. The purpose of this function is not for debugging, like the excellent xdebug, but just to let you view data in a simple way. It requires no server installation but only two lines of code. You can see an example and
download the LGPL sourcecode at this website








April 18th, 2005 at 7:58 pm
I use Derick’s excellent xdebug (http://www.xdebug.org) for that purpose, which not only enhances var_dump() but also errors, and a host of other nice stuff