Home > Backend Development > PHP Tutorial > 使用phpExcelreader有关问题

使用phpExcelreader有关问题

WBOY
Release: 2016-06-13 10:10:52
Original
1147 people have browsed it

使用phpExcelreader问题
在使用中读取文件时 出现sheets中没有数据,但是
boundsheets Array [3]
formatRecords Array [15]
sst Array [263]
中有数据。 这个是为什么呢



------解决方案--------------------
这个问题不好说

PHP code
require_once 'Excel/reader.php';  $data = new Spreadsheet_Excel_Reader();  $data->setOutputEncoding('gbk');  $data->read(test.xls');  for ($i = 1; $i sheets[0]['numRows']; $i++)   {        for ($j = 1; $j sheets[0]['numCols']; $j++)         {            echo $data->sheets[0]['cells'][$i][$j];        }    }<br><font color="#e78608">------解决方案--------------------</font><br>改一下单元格的格式,如文本格式<div class="clear">
                 
              
              
        
            </div>
Copy after login
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