0

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

Anish
  • 4,262
  • 6
  • 36
  • 58

2 Answers2

4

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.

xdazz
  • 158,678
  • 38
  • 247
  • 274
0

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

And PHPExcel, of course.

Community
  • 1
  • 1
SlyChan
  • 769
  • 4
  • 15