No need to count columns to merge cells anymore.
The old merge cell way:
$writer->markMergedCell($sheet1, $start_row=0, $start_col=0, $end_row=0, $end_col=4);
The new one:
$writer->mergeCells($sheet1, 'A1:E1');
No need to count columns to merge cells anymore.
The old merge cell way:
$writer->markMergedCell($sheet1, $start_row=0, $start_col=0, $end_row=0, $end_col=4);
The new one:
$writer->mergeCells($sheet1, 'A1:E1');