문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top