我正在從運行php代碼獲得以下輸出,現在我想從下面的數組中獲得「url」字段,我該如何獲取?如何從數組中獲取特定元素
Array (
[data] => Array (
[0] => Array (
[id] => xxxxx
[from] => Array (
[id] => xxxxxx
[name] => abc
)
[start_time] => 2012-04-28T07:49:17+0000
[end_time] => 2012-04-28T07:49:17+0000
[publish_time] => 2012-04-28T07:49:17+0000
[application] => Array (
[id] => 389407107765872
[name] => Ki News Social Reader
)
[data] => Array (
[article] => Array (
[id] => 10150703062718596
[url] => http://example.com
[type] => kinewssocialreader:article
[title] => story
)
)
在此先感謝!
如何訪問陣列應該是基本常識:http://php.net/manual/en/language.types.array.php – 2012-04-28 16:57:05
見多維數組[這裏](HTTP:// www.w3schools.com/php/php_arrays.asp)。 – Shomz 2012-04-28 16:57:23