摘要:
require_once 'PHPExcel.php'; $PHPReader = new PHPExcel_Reader_Excel2007(); $filePath = 'wjyl.xlsx'; if(!$PHPReader->canRead($filePath)){ $PHPReader = new PHPExcel_Reader_Excel5();//讀取舊版本} $PHPExcel = $PHPReader->load($filePath);//讀取Excel文件 $sheetCount = $PHPExcel->getSheetCo 阅读全文