Home  >  Article  >  Backend Development  >  请教Spreadsheet_Excel_Reader 如何读取excel指定的工作簿

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

WBOY
WBOYOriginal
2016-06-13 12:05:121408browse

请问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 />


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

Statement:
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