Question: how to convert excel file to csv in php?
Answer: php'); $reader = PHPExcel_IOFactory::createReader('Excel5'); $reader-&gt;setReadDataOnly(true); $path = 'data. xls'; $excel = $reader-&gt;load($path); $writer = PHPExcel_IOFactory::createWriter($excel, 'CSV'); $writer-&gt;save('data. csv'); echo 'File saved to csv format';