public function peek() {
		if ($this->_buffer) {
			return reset($this->_buffer);
		}
		if (!$next = $this->_fetch()) {
			return null;
		}
		$this->_buffer[] = $next;
		$first = reset($this->_buffer);
		return end($first);
	}
public function peek() {
		if ($this->_buffer) {
			return reset($this->_buffer);
		}
		if (!$next = $this->_fetch()) {
			return null;
		}
		$this->_buffer[] = $next;
		$first = reset($this->_buffer);
		return end($first);
	}
public function peek ( ) { if ( $ this -> _buffer ) { return reset ( $ this -> _buffer ) ; } if ( ! $ next = $ this -> _fetch ( ) ) { return null ; } $ this -> _buffer [ ] = $ next ; $ first = reset ( $ this -> _buffer ) ; return end ( $ first ) ; }
Peeks at the next element in the resource without advancing `Result`'s cursor.

@return mixed The next result (or `null` if there is none).
Peeks at the next element in the resource without advancing Result s cursor .