On Fri, 2010-01-29 at 15:54 -0800, Daevid Vincent wrote:

> I'm  wondering if anyone has a PHP debug-type routine that will take a PHP
> array and output it to the web page, but make all the dimensions of the
> array collapsable, ideally showing each sub-key (or index) as the name to
> click to expand it again.
> I'm dealing with some rather huge datasets in multi-dimensional hashes and
> printing them out with a beautified print_r() is just not cutting it
> anymore. I need to collapse them down to wrap my head around them. Some of
> them have 6 or more dimensions!
> I use jQuery for JS if that helps (in case your routine requires that too).

I know it's not quite what you want, but what about copying and pasting
the output from the view source to a more advanced text editor like Kate
or Notepad++. They both support code-folding, and allow you to minimise
blocks of code at points in the text, usually where you have opened
brackets, etc. This also comes in handy when you're developing too.


Reply via email to