How to find out how many rows and columns to read from an Excel file with PHPExcel?

前端 未结 6 619
眼角桃花
眼角桃花 2020-12-12 23:51

With the following code, I am able to read the cells out of an Excel file with PHPExcel.

I currently manually define how many rows and columns to re

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 00:55

    I don't think you can do that, you would have to loop through starting from say 1000 and go backwards until you hit the first non-blank cell and that would be your last row or column.

    You can write a macro to do this in excel which may help but I don't know if you can execute it with PHPExcel.

提交回复
热议问题