如何从数组数组中获取值?

时间:2011-07-02 13:28:36

标签: php arrays

我有如下数组:

Array
(
    [_edit_lock] => Array
        (
            [0] => 1309611144:1
        )

    [_edit_last] => Array
        (
            [0] => 1
        )

    [banner_url] => Array
        (
            [0] => http://apptivowp.apptivo.com/awp-content/10001/uploads/2011/07/gallery_banner.jpg
        )

    [_yoast_wpseo_focuskw] => Array
        (
            [0] => 
        )

    [_yoast_wpseo_title] => Array
        (
            [0] => 
        )
)

如何获得banner_url值?

1 个答案:

答案 0 :(得分:2)

简单如下:

$array['banner_url'][0]