如何在 Pear 中为合并单元格设置边框 Excel

How to set border for merged cells in Pear Excel

如何在 PHP Pear Spreadsheet Excel writer 中设置合并单元格的边框?

我们可以在合并的单元格上写空白并应用您的 pre-defined 格式。

例如

$format = [Define your format over here]

$worksheet->writeString( 0, 1, "some Text", $format);
$worksheet->writeBlank( 0, 2, $format);
$worksheet->setMerge(0,1,0,2);