php PHPExcel
$highestRow = $sheet->getHighestRow(); // 取得总行数
$highestColumn = $sheet->getHighestColumn(); // 取得总列数
我用PHPExcel来获取excel里的值,在获取行数时是准确的,但是在获取列数时却为0,求解
回复讨论(解决方案)
getHighestColumn 获取最大列号,而不是总列数
因此,你需要打开 xsl 文件看看光标在哪里
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