PHPOffice/PhpSpreadsheet get cell column index as integer

Jona picture Jona · Apr 18, 2018 · Viewed 7.8k times · Source

How can I get cell column index as integer? I have searched the documentation but I didn't found anything.

Answer

saeed yadgari picture saeed yadgari · Feb 7, 2019

please see Accessing cells

$ColumnIndex = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::columnIndexFromString($Column);