PHP fputcsv to .xls with style

六月ゝ 毕业季﹏ 提交于 2019-12-13 21:24:18

问题


I am trying to export some data to an excel sheet using fputcsv on PHP. I know that .csv files do not support style. If there any way I can add style to that file by saving the file as .xls?


回答1:


CSV and XLS formats are totally different. So if you want to add style, you have to create an XLS file (and forget fputcsv :/ ).

Have a look to PhpExcel.



来源:https://stackoverflow.com/questions/21573116/php-fputcsv-to-xls-with-style

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!