Page 1 of 1

Format cells of excel file

Posted: Fri Nov 12, 2010 1:07 am
by dheeraja
Hi Guys,
I am looking for a way to format excel cells using PHP, I am exporting mysql data to excel file using below method:

Code: Select all

$fields = array("Date", "Time In", "Time Out", "Hours", "Project", "Component", "Sub-Component", "Work Done", "Supervisor Changes", PHP_EOL);
file_put_contents($filename, implode("\t", $fields), FILE_APPEND);
Now I want to make BOLD all this header fields, so please help me to this construct..

Thank you

Re: Format cells of excel file

Posted: Fri Nov 12, 2010 12:51 pm
by Celauran
This article might be worth a look.