PhpSpreadsheet only save the first worksheet as csv
I tried to save a specific worksheet from an XLSX as CSV. First I tried to use setActiveSheetIndexByName() function to set active sheet and call the writer method of PhpOfficePhpSpreadsheetWriterCsv, but no luck. Somehow the writer save the first worksheet.…