php导出电子表格
//輸出電子表格function?export($file_name,$title?=?array(),?$data)?{$excel_str?=?str_replace("\n",?"\t",?implode(","?,?$title))?.?"\n";$excel_str?.=?$data;$file_name?=?mb_convert_encoding?(?$file_name,?"GB2312",?"UTF-8"?);header?(?"Content-Type:?application/vnd.ms-execl"?);header?(?"Content-Disposition:?p_w_upload;?filename="?.?$file_name?.?".csv"?);header?(?"Pragma:?no-cache"?);header?(?"Expires:?0"?);$str?=?mb_convert_encoding?(?$excel_str,?"GBK",?"UTF-8"?);echo?$str;die();}
轉(zhuǎn)載于:https://blog.51cto.com/fblsky/1422107
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
- 上一篇: 849 元,小米激光打印机 K100 今
- 下一篇: 哪种春季时令食物有树上蔬菜之称?蚂蚁庄园