Skip leading rows
Reading is available on Windows from extension
1.3.4.1upwards;Extension version
>= 1.2.7;When installing via PECL, answer
yeswhen prompted to enable the reader.
Function Prototype
setSkipRows(int $skipRows): selfDiscards the first
$skipRowsrows of the active sheet from the iterator. Apply it afteropenSheet()and beforenextRow()/getSheetData().
Test data preparation
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$filePath = $excel->fileName('tutorial.xlsx')
->header(['', 'Cost'])
->data([
[],
['viest', '']
])
->output();Example 1
Example 2
Last updated
Was this helpful?