请教Spreadsheet_Excel_Reader 如何读取excel指定的工作簿

WBOY
Release: 2016-06-13 12:05:12
Original
1457 people have browsed it

请问Spreadsheet_Excel_Reader 怎么读取excel指定的工作簿?

<br />$data = new Spreadsheet_Excel_Reader();<br />$data->setOutputEncoding('gbk');<br />$data->read('abc.xls'); <br />echo $data->sheets[0]['cells'][1][1];<br />
Copy after login


sheets[0]代表第一个工作簿,请问如果指定读取excel 中一个叫water的工作簿的第一行、 第一列的数据,代码该怎么写? 
------解决方案--------------------
遍历sheet 取title = water的sheet的key值
------解决方案--------------------
有弄过的吗? 给个代码

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template