public function next()
    {
        $this->index++;

        // Prefetch the next element
        if ($this->validOnNext) $this->prefetch();

        if ($this->uses_groups) {
            // Notify the grouping helper of the change
            $this->groups->reset();
        }
    }
public function next()
    {
        $this->index++;

        // Prefetch the next element
        if ($this->validOnNext) $this->prefetch();

        if ($this->uses_groups) {
            // Notify the grouping helper of the change
            $this->groups->reset();
        }
    }
public function next ( ) { $ this -> index ++ ; // Prefetch the next element if ( $ this -> validOnNext ) $ this -> prefetch ( ) ; if ( $ this -> uses_groups ) { // Notify the grouping helper of the change $ this -> groups -> reset ( ) ; } }
Fetches the next element in the iteration and advances the pointer
Fetches the next element in the iteration and advances the pointer