我在文档中搜索了几个小时,但没有合并和水平居中..
任何人都可以帮助我如何做到这一点?
我最后的代码:
$spreadsheet = new Spreadsheet();
$excel = $spreadsheet->getActiveSheet();
$spreadsheet->getProperties()->setTitle($name_sheet)->setCreator('Creator');
$excel->mergeCells('A1:W1');
$excel->mergeCells('A2:W2');
$excel->mergeCells('A3:W3');
//how to make cells A1 till W1 to be centered cell?