src/Driver/Excel.php
public function read($row, $column = null)
    {
        $xlSheet = $this->xlSheet();

        if (is_null($column)) {
            $rowNames = [];
            $highestColumn = $xlSheet->getHighestColumn(); // e.g 'F'
            $highestColumnIndex = Cell\Coordinate::columnIndexFromString($highestColumn); // e.g. 5
            $value = [];
            for ($col = 1; $col <= $highestColumnIndex; ++$col) {
                if (!isset($rowNames[$col])) {
                    $rowName = $xlSheet->getCellByColumnAndRow($col, $this->firstRow())->getCalculatedValue();
                    $rowNames[$col] = $rowName;
                }

                $rowName = $rowNames[$col];
                if ($rowName) {
                    $value[$rowName] = $xlSheet->getCellByColumnAndRow($col, $row)->getCalculatedValue();
                } else {
                    $value[$col] = $xlSheet->getCellByColumnAndRow($col, $row)->getCalculatedValue();
                }
            }
        } else {
            $value = $xlSheet->getCellByColumnAndRow($column, $row)->getCalculatedValue();
        }

        return $value;
    }
public function read($row, $column = null)
    {
        $xlSheet = $this->xlSheet();

        if (is_null($column)) {
            $rowNames = [];
            $highestColumn = $xlSheet->getHighestColumn(); // e.g 'F'
            $highestColumnIndex = Cell\Coordinate::columnIndexFromString($highestColumn); // e.g. 5
            $value = [];
            for ($col = 1; $col <= $highestColumnIndex; ++$col) {
                if (!isset($rowNames[$col])) {
                    $rowName = $xlSheet->getCellByColumnAndRow($col, $this->firstRow())->getCalculatedValue();
                    $rowNames[$col] = $rowName;
                }

                $rowName = $rowNames[$col];
                if ($rowName) {
                    $value[$rowName] = $xlSheet->getCellByColumnAndRow($col, $row)->getCalculatedValue();
                } else {
                    $value[$col] = $xlSheet->getCellByColumnAndRow($col, $row)->getCalculatedValue();
                }
            }
        } else {
            $value = $xlSheet->getCellByColumnAndRow($column, $row)->getCalculatedValue();
        }

        return $value;
    }
{@inheritDoc}