$arr1 = array(1,2);$arr2 = array(5,6);$arr3 = array();foreach ($arr1 as $k => $v) { $arr3[] = array('name'=>$arr1[$k],'img'=>$arr2[$k]);}print_r($arr3);
用array_merge