I want to get cell value from a specific column in the row object:
$this->parsedExcelFile; //this is the worksheet
$rows = $this->parsedExcelFile->getActiveSheet()->getRowIterator(($this->startRowIndex+1));
foreach($rows as $row){
$values[] = $row->getCellFromColumn('B')->getValue();
//in getCellFromColumn is the column index, lets say B
//getCellFromColumn($par) is a fictional function, i can't find how to get cell from a
//certain column directly from the row object
}
I don't want to get it with:
$this->parsedExcelFile->getCell('B'.$row->getRowIndex())->getValue();
And i don't want to loop trough all cells. Any help is welcome.