开发者

Function to create collapseable print_r() var_dump()?

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 +?


Yes, it's available as the Krumo project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜