PHP数组转置function rotate($a){ $b=array(); foreach($a as $val){ foreach($val as $k=>$v){ $b[$k][] = $v; } } return $b; } AD:真正免费,域名+虚机+企业邮箱=0元