Categorized | News, PHP

Dumping your data

Posted on 29 March 2005 by Demian Turner

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

Bookmark and Share

1 Comments For This Post

  1. Hendy Irawan Says:

    I use Derick’s excellent xdebug ( for that purpose, which not only enhances var_dump() but also errors, and a host of other nice stuff

Leave a Reply



Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists



PHPkitchen recommends you also check out the following sites :

Accounting for Small Businesses

FreeAgent sign-up