public function getValues()
    {
        while ($row = $this->getNextRow()) {
            if ($this->columnCount() > 1) {
                $key = rtrim(reset($row));
                $val = rtrim(next($row));
                yield $key => $val;
            } else {
                yield rtrim(reset($row));
            }
        }
    }
public function getValues()
    {
        while ($row = $this->getNextRow()) {
            if ($this->columnCount() > 1) {
                $key = rtrim(reset($row));
                $val = rtrim(next($row));
                yield $key => $val;
            } else {
                yield rtrim(reset($row));
            }
        }
    }
public function getValues ( ) { while ( $ row = $ this -> getNextRow ( ) ) { if ( $ this -> columnCount ( ) > 1 ) { $ key = rtrim ( reset ( $ row ) ) ; $ val = rtrim ( next ( $ row ) ) ; yield $ key => $ val ; } else { yield rtrim ( reset ( $ row ) ) ; } } }
Get a generator function to fetch from.

@return Generator
Get a generator function to fetch from .