SyntaxFix
Write A Post
Hire A Developer
Questions
The simple way to make bold headers:
$row = 1; foreach($tittles as $index => $tittle) { $worksheet->getStyleByColumnAndRow($index + 1, $row)->getFont()->setBold(true); $worksheet->setCellValueByColumnAndRow($index + 1, $row, $tittle); }