我正在从运行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