문제

I need to change the text of header from lighter to bold of the csv . I am using fputcsv() of php to generate to csv file.

 fputcsv($output,array('Report','Entitlement Report'));

This is the basic code which I am using to print the header of my csv file . Any idea to accomplish this or any example

Thanks in advance

도움이 되었습니까?

해결책

You can't achieve this because CSV file doesn't support the font style.

PS: CSV file could be opened with Excel, but it is not Excel file format, doesn't support any style.

다른 팁

XLS / XLSX format supports visual styles. List of libraries for xls reading/writing.

And PHPExcel, of course.

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