Repeat rows
Function Prototype
repeatRows(string $rangeA1): selfstring $rangeA1
Example
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject = $fileObject->fileName('tutorial.xlsx');
$filePath = $fileObject->header(['name', 'age'])
->data([
['viest', 21],
['wjx', 21]
])
->repeatRows('1:1') // Repeat row 1 on every printed page
->output();Last updated