public function rewind()
    {
        $this->index = 0;
        $this->length = null;
        $this->end = false;

        $this->iterator->rewind();

        // Prefetch the next element
        if ($this->iterator->valid()) {
            $this->validOnNext = true;
            $this->prefetch();
        } else {
            $this->validOnNext = false;
        }

        if ($this->uses_groups) {
            // Notify the grouping helper of the change
            $this->groups->reset();
        }
    }
public function rewind()
    {
        $this->index = 0;
        $this->length = null;
        $this->end = false;

        $this->iterator->rewind();

        // Prefetch the next element
        if ($this->iterator->valid()) {
            $this->validOnNext = true;
            $this->prefetch();
        } else {
            $this->validOnNext = false;
        }

        if ($this->uses_groups) {
            // Notify the grouping helper of the change
            $this->groups->reset();
        }
    }
public function rewind ( ) { $ this -> index = 0 ; $ this -> length = null ; $ this -> end = false ; $ this -> iterator -> rewind ( ) ; // Prefetch the next element if ( $ this -> iterator -> valid ( ) ) { $ this -> validOnNext = true ; $ this -> prefetch ( ) ; } else { $ this -> validOnNext = false ; } if ( $ this -> uses_groups ) { // Notify the grouping helper of the change $ this -> groups -> reset ( ) ; } }
Restarts the iteration process going back to the first element
Restarts the iteration process going back to the first element