Function to create collapseable print_r () var_dump ()?

You are probably familiar with this print_r result:

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 ( ) ) 

Is there anything that would create HTML that would allow me to collapse, say, the parent material, something like this:

 Hierarchy Object ( + [parent:private] => Hierarchy Object [level:private] => 1 ) 

and then redeploy it by clicking +?

+4
source share
1 answer

Yes, it is available as a Krumo project.

+6
source

All Articles