您好,尝试通过PHP导出csv文件时,对特定的单元格(月份)进行着色和着色/着色。我如何为Month单元着色/着色?
/ open the file "file.csv" for writing
$file = fopen('file.csv', 'w');
// save the column headers
fputcsv($file, array('Month', 'Day Date'));
// save each salary Days to the csv file
foreach($salaryDays as $row){
fputcsv($file, $row);
}
// Close the file
fclose($file);