$out表单提交转成数组 $out = array();foreach ($_POST as $key => $value) { foreach ($value as $k => $v) { $out[$k][$key] = $value[$k]; }}