第一種:常見方法,
$a['seekerPhoto'][$k1][$k2] => $b['seekerPhoto'][$k2][$k1]
第二種:
$a = array ( 'name' => array ( 0 => '1.jpg', 1 => '2.jpg', ), 'type' => array ( 0 => 'image/jpeg', 1 => 'image/jpeg', ), 'tmp_name' => array ( 0 => 'E:\\html\\temp\\phpB1.tmp', 1 => 'E:\\html\\temp\\phpC2.tmp', ), 'error' => array ( 0 => '0', 1 => '0', ), 'size' => array ( 0 => '70373', 1 => '261210', ), ); $k = array_keys($a); $r = call_user_func_array('array_map', array_merge(array(null), $a)); $r = array_map('array_combine', array_fill(0, count($r), $k), $r); print_r($r);*