1、readexcel.system.php
复制代码 代码如下:
<?php
/**
* A class for reading Microsoft Excel Spreadsheets.
*
* Originally developed by Vadim Tkachenko under the name PHPExcelReader.
* (http://sourceforge.net/projects/phpexcelreader)
* Based on the Java version by Andy Khan (http://ment-ender-p: nil
* End:
*/
?>
2、调用方法
复制代码 代码如下:
<?php
$data = new ReadexcelSystem();
$data->setOutputEncoding('utf-8');
$data->read($location);
print_r($data->sheets[0]['cells'] );
?>
$data->sheets[0]['cells']
就是我们要获取的excle文件里的数据
