The AppendIterator class

(PHP 5 >= 5.1.0)

Introduzione

An Iterator that iterates over several iterators one after the other.

Sommario dellla classe

AppendIterator extends IteratorIterator implements OuterIterator {
/* Metodi */
public __construct ( void )
public void append ( Iterator $iterator )
public mixed current ( void )
public void getArrayIterator ( void )
public Iterator getInnerIterator ( void )
public int getIteratorIndex ( void )
public scalar key ( void )
public void next ( void )
public void rewind ( void )
public bool valid ( void )
/* Metodi ereditati */
public mixed IteratorIterator::current ( void )
public Traversable IteratorIterator::getInnerIterator ( void )
public scalar IteratorIterator::key ( void )
public void IteratorIterator::next ( void )
public void IteratorIterator::rewind ( void )
public bool IteratorIterator::valid ( void )
}

Indice dei contenuti

add a note add a note

User Contributed Notes 1 note

up
1
joshdifabio at gmail dot com
3 months ago
Note that AppendIterator will segfault when iterating over an empty generator. Do not use AppendIterator in conjunction with generators.

https://3v4l.org/YC68k

https://bugs.php.net/bug.php?id=71436
To Top