PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
在header() 前面加上ob_end_clean() 函数, 清除缓冲区, 这样就不会乱码了!
ob_end_clean();//清除缓冲区,避免乱码
header('Content-Type: application/vnd.ms-excel');
.....
.....
ob_end_clean();//清除缓冲区,避免乱码
header('Content-Type: application/vnd.ms-excel');
.....
.....
转载请注明:谷谷点程序 » 使用phpexcel导出excel乱码