SimpleExcel\Parser\BaseParser::getCell PHP Method

getCell() public method

Get value of the specified cell
public getCell ( integer $row_num, integer $col_num, integer $val_only = true ) : array
$row_num integer Row number
$col_num integer Column number
$val_only integer
return array
    public function getCell($row_num, $col_num, $val_only = true)
    {
        // check whether the cell exists
        if (!$this->isCellExists($row_num, $col_num)) {
            throw new \Exception('Cell ' . $row_num . ',' . $col_num . ' doesn\'t exist', SimpleExcelException::CELL_NOT_FOUND);
        }
        return $this->table_arr[$row_num - 1][$col_num - 1];
    }