Home > Backend Development > PHP Tutorial > 急救:PHPExcel获取不多列数

急救:PHPExcel获取不多列数

WBOY
Release: 2016-06-23 14:28:18
Original
1609 people have browsed it

php PHPExcel

$highestRow = $sheet->getHighestRow(); // 取得总行数

$highestColumn = $sheet->getHighestColumn(); // 取得总列数

我用PHPExcel来获取excel里的值,在获取行数时是准确的,但是在获取列数时却为0,求解

回复讨论(解决方案)

getHighestColumn 获取最大列号,而不是总列数
因此,你需要打开 xsl 文件看看光标在哪里

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