如何用PHP解析array数组

Array
(
    [error_code] => 0
    [error_msg] => SUCCESS
    [log_id] => 7.4795696152086E+17
    [timestamp] => 1546152086
    [cached] => 0
    [result] => Array
        (
            [face_num] => 1
            [face_list] => Array
                (
                    [0] => Array
                        (
                            [face_token] => ad9d8f7127761e5b2f8dcb37b0fe5afb
                            [location] => Array
                                (
                                    [left] => 67.22
                                    [top] => 107.6
                                    [width] => 124
                                    [height] => 127
                                    [rotation] => -1
                                )

                            [face_probability] => 1
                            [angle] => Array
                                (
                                    [yaw] => 7.16
                                    [pitch] => 0.38
                                    [roll] => -3.84
                                )

                            [age] => 28
                            [beauty] => 62.27
                            [face_type] => Array
                                (
                                    [type] => human
                                    [probability] => 1
                                )

                        )

                )

        )

)

如何把里面的age beauty 和 face_type 数值变成 php 变量

汪汪一只猫
浏览 416回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP