phpexcelphpspreadsheetphpoffice

PHPOffice/PhpSpreadsheet get cell column index as integer


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


Solution

  • please see Accessing cells

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