我有一个
的数组Array
(
[0] => Array
(
[city_id] => 16
[city_name] => San Diego
[state_abbreviation] => CA
[city_lat] => 32.715328
[city_long] => -117.157257
[city_image] => sandiego_ca.jpg
)
)
我只想展示
Array
(
[city_id] => 16
[city_name] => San Diego
[state_abbreviation] => CA
[city_lat] => 32.715328
[city_long] => -117.157257
[city_image] => sandiego_ca.jpg
)
基本上删除[0]嵌套,以便我可以更好地解析它
答案 0 :(得分:0)
不是php数组可以这样做。只需使用tmp变量。
$ arr = $ this_arr [0];
就是这样。