SimpleExcel\Parser\BaseParser::getRow PHP Method

getRow() public method

Get data of the specified row as an array
public getRow ( integer $row_num, boolean $val_only = TRUE ) : array
$row_num integer Row number
$val_only boolean
return array
    public function getRow($row_num, $val_only = TRUE)
    {
        if (!$this->isRowExists($row_num)) {
            throw new \Exception('Row ' . $row_num . ' doesn\'t exist', SimpleExcelException::ROW_NOT_FOUND);
        }
        // return the array
        return $this->table_arr[$row_num - 1];
    }