迭代器
AppendIterator::append
迭代器
PHP Manual
The AppendIterator class
(PHP 5 >= 5.1.0, PHP 7)
简介
这个迭代器能陆续遍历几个迭代器
类摘要
AppendIterator
extends
IteratorIterator
implements
OuterIterator
{
/* 方法 */
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
)
/* 继承的方法 */
public
IteratorIterator::__construct
(
Traversable
$iterator
)
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
)
}
Table of Contents
AppendIterator::append
— Appends an iterator
AppendIterator::__construct
— Constructs an AppendIterator
AppendIterator::current
— Gets the current value
AppendIterator::getArrayIterator
— Gets the ArrayIterator
AppendIterator::getInnerIterator
— Gets the inner iterator
AppendIterator::getIteratorIndex
— Gets an index of iterators
AppendIterator::key
— Gets the current key
AppendIterator::next
— Moves to the next element
AppendIterator::rewind
— Rewinds the Iterator
AppendIterator::valid
— Checks validity of the current element
迭代器
AppendIterator::append
迭代器
PHP Manual