ScotlandPHP 2016

The AppendIterator class

Introduction

Iterate over multiple collections.

Class synopsis

AppendIterator extends IteratorIterator implements OuterIterator , Traversable , Iterator {
/* Methods */
public void append ( Iterator $iterator )
__construct ( void )
public void current ( void )
public void getArrayIterator ( void )
public void getInnerIterator ( void )
public void getIteratorIndex ( void )
public void key ( void )
public void next ( void )
public void rewind ( void )
public void valid ( void )
/* Inherited methods */
public void IteratorIterator::current ( void )
public void IteratorIterator::key ( void )
public void IteratorIterator::next ( void )
public void IteratorIterator::rewind ( void )
public bool IteratorIterator::valid ( void )
}

Table of Contents

add a note add a note

User Contributed Notes 1 note

up
0
joshdifabio at gmail dot com
2 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