public function get($index=0,$colName=null)
    {
        if (isset($this->rows[$index])) {
            if ($colName!==null) {
                if (isset($this->rows[$index][$colName])) {
                    return $this->rows[$index][$colName];
                }
            } else {
                return $this->rows[$index];
            }
        }
        return null;
    }
public function get($index=0,$colName=null)
    {
        if (isset($this->rows[$index])) {
            if ($colName!==null) {
                if (isset($this->rows[$index][$colName])) {
                    return $this->rows[$index][$colName];
                }
            } else {
                return $this->rows[$index];
            }
        }
        return null;
    }
public function get ( $ index = 0 , $ colName = null ) { if ( isset ( $ this -> rows [ $ index ] ) ) { if ( $ colName !== null ) { if ( isset ( $ this -> rows [ $ index ] [ $ colName ] ) ) { return $ this -> rows [ $ index ] [ $ colName ] ; } } else { return $ this -> rows [ $ index ] ; } } return null ; }
Return a data row at index or single value at column name

@param integer $index   At what index you want to get row
@param string  $colName What field you want to get value from

@return mixed Could be array of row or single value
Return a data row at index or single value at column name