To merge cells in Excel using PHPExcel, you can use the mergeCells() method.
PHPExcel is a library for working with Microsoft Excel files in PHP.
To loop through columns in PHPExcel, you can use the following code snippet as an example: