PHPExcel完全可以滿足你的要求,給個簡單處理例子,具體的你還是看看PHPExcel的文檔:
代碼如下復制代碼$filename = "myexcel.xlsx";
$objReader = PHPExcel_IOFactory::createReader('Excel2007');
$objPHPExcel = $objReader->load($filename);
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'CSV');
$objWriter->save(str_replace('.xlsx', '.csv',$filename));