我之前写过一篇PHP读取csv文件的内容 上代码index.php <?php /** * * @author XC * */ class Excel { public $currentSheet; public $filePath; public $fileType; ; public $allColumn; public $allRow; public function initialized($filePath) { if (file_exists($filePath)) { $this-…
//读取 <?php header("Content-Type:text/html;charset=utf-8"); include 'Classes/PHPExcel.php'; include 'Classes/PHPExcel/IOFactory.php'; function readxls($file, $type) { $xlsReader = PHPExcel_IOFactory::createReader($type); $xlsReader->setRead…