function fetch ()
  {
    $it = $this->getIterator ();
    if (!$this->fetching) {
      $this->fetching = true;
      $it->rewind ();
    }
    if ($it->valid ()) {
      $v = $it->current ();
      $it->next ();
      return $v;
    }
    return false;
  }
function fetch ()
  {
    $it = $this->getIterator ();
    if (!$this->fetching) {
      $this->fetching = true;
      $it->rewind ();
    }
    if ($it->valid ()) {
      $v = $it->current ();
      $it->next ();
      return $v;
    }
    return false;
  }
function fetch ( ) { $ it = $ this -> getIterator ( ) ; if ( ! $ this -> fetching ) { $ this -> fetching = true ; $ it -> rewind ( ) ; } if ( $ it -> valid ( ) ) { $ v = $ it -> current ( ) ; $ it -> next ( ) ; return $ v ; } return false ; }
Gets the current value from the composite iterator and iterates to the next.

This is a shortcut way of reading one single data item from the iteration.
It also takes care of rewinding the iterator when called for the first time.

@return mixed|false `false` when the iteration is finished.
Gets the current value from the composite iterator and iterates to the next .