How to use PHP to convert an excel file ".xlsx" to ".xls?

Tell me how using PHP can I convert excel file from xlsx to xls ?
March 19th 20 at 08:53
1 answer
March 19th 20 at 08:55
Made using the library PHPExcel
require_once "xls/Classes/PHPExcel.php";
# Specify the path to the file .xlsx
$file = "file_name.xlsx";
$name = str_replace('.xlsx', ", $file);
$pExcel = PHPExcel_IOFactory::load($file);
$objWriter = PHPExcel_IOFactory::createWriter($pExcel, 'Excel5');
$objWriter->save($name . '.xls');

Find more questions by tags ExcelPHP