开发者

Function to create collapseable print_r() var_dump()?

开发者 https://www.devze.com 2023-01-14 06:13 出处:网络
You\'ve probably familiar with this output from print_r: Hierarchy Object ( [parent:private] => Hierarchy Object

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

精彩评论

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