$indexA1 = PHPExcel_Cell::coordinateFromString('A1'); $indexB2 = PHPExcel_Cell::coordinateFromString('B2');
$start = PHPExcel_Cell::coordinateFromString('A1'); $end = PHPExcel_Cell::coordinateFromString('F10'); $range = range($start, $end);The above code will generate an array of indices from 0 (for cell A1) to 575 (for cell F10). In summary, coordinateFromString is a useful method in the PHPExcel package library to convert cell coordinates into numerical indices.