mergeCells_demo.php 268 B

1234567891011
  1. <?php
  2. /**
  3. * 合并单元格demo
  4. */
  5. require_once(__DIR__ . '/../vendor/autoload.php');
  6. use Pxlswrite\Pxlswrite;
  7. $fileObj = new Pxlswrite(['path' => __DIR__ . '/uploads']);
  8. $fileObj->fileName("mergeCells.xlsx")
  9. ->mergeCells('A1:C1', 'Merge cells')
  10. ->output();