tags:

views:

40

answers:

1

Hi,

You've probably familiar with this output from print_r:

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 exists that would produce HTML that would allow for me to roll up, say, the parent stuff to something like this:

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

and then re-expand it by clicking on the +?

+4  A: 

Yes, it's available as the Krumo project.

shamittomar
Checking it out; will accept answer if it works!
hopeseekr
Yeah, when I use Krumo, it just says: ... (Object) Hierarchy And won't let me see *any* properties or anything.
hopeseekr
It absolutely works fine for me.
shamittomar