Function to create collapseable print_r() var_dump()?

aRsi

New Member
You've probably familiar with this output from print_r:\[code\]Hierarchy Object( [parent:private] => Hierarchy Object ( [parent:private] => [children:private] => Array ( ) [level:private] => 0 [price_modes:private] => Array ( ) [id:protected] => [left_id:protected] => [right_id:protected] => [name:protected] => [validationFailures:protected] => Array ( ) [_new:private] => 1 [_deleted:private] => [modifiedColumns:protected] => Array ( ) ) [level:private] => 1 [price_modes:private] => Array ( ))\[/code\]Is there anything that exists that would produce HTML that would allow for me to roll up, say, the parent stuff to something like this:\[code\]Hierarchy Object( + [parent:private] => Hierarchy Object [level:private] => 1)\[/code\]and then re-expand it by clicking on the +?
 
Back
Top