lib/Iterator/AppendIterator.php
public function next()
    {
        $iterator = $this->iterators[$this->index];
        $next = $iterator->next();

        if (false === $this->valid() && isset($this->iterators[$this->index + 1])) {
            $this->index++;
        }
    }
public function next()
    {
        $iterator = $this->iterators[$this->index];
        $next = $iterator->next();

        if (false === $this->valid() && isset($this->iterators[$this->index + 1])) {
            $this->index++;
        }
    }
public function next ( ) { $ iterator = $ this -> iterators [ $ this -> index ] ; $ next = $ iterator -> next ( ) ; if ( false === $ this -> valid ( ) && isset ( $ this -> iterators [ $ this -> index + 1 ] ) ) { $ this -> index ++ ; } }
Moves to the next element
@link http://php.net/manual/en/appenditerator.next.php
@return void
@since 5.1.0
Moves to the next element