Iterators
PHP Manual

The MultipleIterator class

简介

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

类摘要

MultipleIterator implements Iterator , Traversable {
/* 常量 */
const integer MultipleIterator::MIT_NEED_ANY = 0 ;
const integer MultipleIterator::MIT_NEED_ALL = 1 ;
/* 方法 */
public void attachIterator ( Iterator $iterator [, string $infos ] )
__construct ( int $flags )
public void containsIterator ( Iterator $iterator )
public void countIterators ( void )
public void current ( void )
public void detachIterator ( Iterator $iterator )
public void getFlags ( void )
public void key ( void )
public void next ( void )
public void rewind ( void )
public void setFlags ( int $flags )
public void valid ( void )
}

预定义常量

MultipleIterator Node Types

MultipleIterator::MIT_NEED_ANY

Do not require all sub iterators to be valid in iteration.

MultipleIterator::MIT_NEED_ALL

Require all sub iterators to be valid in iteration.

MultipleIterator::MIT_KEYS_NUMERIC

Keys are created from the sub iterators position.

MultipleIterator::MIT_KEYS_ASSOC

Keys are created from sub iterators associated information.

Table of Contents


Iterators
PHP Manual