iT邦幫忙

0

php array 問題

Array

(

[body] => Array

    (

        [total] => 2

       

        [paging] => Array

            (

                [next] => 

                [previous] => 

                [first] => a

                [last] => b

            )



        [data] => Array

            (

                 [0] => Array

                    (

                        [uri] =>  yahoo.com

                        [name] => title1

                     )

                   [1] => Array

                    (

                        [uri] => www.google.com

                        [name] => title1

                     )

              )

              

        )

)

foreach($video as $key => $value) {

echo $key . " => " . $value . "";

foreach($value->body as $key2 => $value2) {

}

我想拎uri .value 如何寫?

雖然懂的你的問題。但...你還是先學會放程式碼吧。
學會了,你就懂的怎麼拿值了。

因為道理是一樣的[][][]的拿。

尚未有邦友回答

立即登入回答