php 多维数组键值重新排序答:a = array(2=>array(1,2,3,4),6=>array(6,2,3,5),1=>array(1,4,53));b = array_values($a);//返回数组中的所有值,形成新的数组,建立数字索引
php高级教程答:一、PHP- 多维数组: $cars = array( array("huawei","12","11"), array("meizu","23","12"), array("iphone","12","4") ); $title = array("手机总共有:","个,已经卖出去了","个!"); for($i=0;$i{ for($j=0;$j { echo $cars[$i][$j]; echo $title[$j]; } echo " ...