联系官方销售客服
1835022288
028-61286886
大佬们。。请问这个字段应该怎么输出啊 我想输出$shiqu 这个字段
<?php $return = []; $quyu = array( '0' => Array( 'id' => 1, 'shengfen' => "北京", 'shiqu' => array( 'chengshi' => "朝阳区", 'chengshi' => "海淀区", 'chengshi' => "顺义区", ) ), ); //循环调取每个省份 foreach ($quyu as $r){ foreach ($r['shiqu'] as $s){ ; $shiqu[] = array( 'name' => $s['chengshi'], ); } } $return = $shiqu;
定义重复了,前缀一定要唯一