PHPExcel Column Loop

后端 未结 7 1989
Happy的楠姐
Happy的楠姐 2020-12-04 14:49

How can I do a loop which based on Excel worksheet columns? I found (and used) WorksheetIterator, RowIterator and CellIterator but nothing about columns.

7条回答
  •  死守一世寂寞
    2020-12-04 15:07

    loop columns as range

    foreach ( range('A', $Excel->getActiveSheet()->getHighestColumn()) as $column_key) {
    
    }
    

提交回复
热议问题