$data1 = array("a2"->"类一","V4"->“类二”);$data2 = array();foreach($data1 as $key=>$value) { $data2[$value] = $data2[$value].' '.$key;}