二位数组转向
数组转向
数组转向
function rotate($a) { $b = array(); foreach ($a as $val) { foreach ($val as $k => $v) { $b[$k][] = $v; } } return $b; }
精彩图集
精彩文章