XLSX to CSV - Normal mode
Application Scenario
Function Prototype
putCSV(resource $handler): boolresource $handler
Example
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
->header(['Item', 'Cost'])
->data([
['Item_1', 'Cost_1', 10, 10.9999995],
])
->output();
// Write mode is on, pointing the file pointer to the end of the file.
$fp = fopen('./tests/file.csv', 'a');
$csvResult = $excel->openFile('tutorial.xlsx')
->openSheet()
->putCSV($fp);Last updated