$arr=array( '0'=>array('a'=>'aa','b'=>'tt','c'=>'ff'), '1'=>array('d'=>'aa','b'=>'cc','a'=>'4sa'), '2'=>array('c'=>'ff','d'=>'hh','b'=>'dd'), ); $arr2=array();//新数组 foreach($arr as $k=>$v){ foreach($v as $key=>$val){ $arr2[$key][]=$val; } } var_dump($arr2);