how to get value from array in array in array?

2019-09-02 11:09发布

I get this array when I print_r($_POST), from the below result I want to get the value of skin.

[skin] => 1.jpg

how will i do that ???

 Array
    (
        [form_key] => WceDMPJOQD17ZeSW
        [config_state] => Array
            (
                [themeoptions_general] => 1
            )

        [groups] => Array
            (
                [general] => Array
                    (
                        [fields] => Array
                            (
                                [themeoptions_images] => Array
                                    (
                                        [skin] => 1.jpg
                                    )

                                [themeoptions_customcss] => Array
                                    (
                                        [value] => color:#333;
                                    )

                            )

                )

        )

)

2条回答
何必那么认真
2楼-- · 2019-09-02 11:45
$_POST['groups']['general']['fields']['themeoptions_images']['skin']

This will give you the value of skin.

查看更多
Melony?
3楼-- · 2019-09-02 12:00
echo $_POST['groups']['general']['fields']['themeoptions_images']['skin']

prints

1.jpg
查看更多
登录 后发表回答