如下代码,加在$cv,$data[$key]上都不行??怎么办求大神解救 //导出xls 开始 if (!empty($title)){ foreach ($title as $k => $v) { $title[$k]=iconv("UTF-8", "GB2312",$v); } $title= implode("\t", $title); echo "$title\n"; } if (!empty($data)){ foreach($data as $key=>$val){ foreach ($val as $ck => $cv) { $data[$key][$ck]=iconv("UTF-8","GB2312",$cv); } $data[$key]=implode("\t",$data[$key]); } echo implode("\n",$data); }