$result = array(); // 新数组foreach ($data as $vo) { // $data是原数组 foreach ($vo as $k => $v) { if($k!=='username'){ $temp = $v; $temp['username'] = $vo['username']; array_push($result,$temp); } }}