CI_DB_result::row_array PHP Method

row_array() public method

Returns a single result row - array version
public row_array ( integer $n ) : array
$n integer
return array
    public function row_array($n = 0)
    {
        $result = $this->result_array();
        if (count($result) === 0) {
            return NULL;
        }
        if ($n !== $this->current_row && isset($result[$n])) {
            $this->current_row = $n;
        }
        return $result[$this->current_row];
    }