Search code examples
phpcsvfputcsv

Change font style with fputcsv


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


Solution

  • 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.