« IteratorAggregate::getIterator
InternalIterator::__construct »
PHP Manual
预定义接口和类
The InternalIterator class
The InternalIterator class
(PHP 8)
简介
Class to ease implementing
IteratorAggregate
for
internal
classes.
类摘要
final
class
InternalIterator
implements
Iterator
{
/* 方法 */
private
__construct
()
public
current
():
mixed
public
key
():
mixed
public
next
():
void
public
rewind
():
void
public
valid
():
bool
}
目录
InternalIterator::__construct
— 禁止直接实例化私有构造方法
InternalIterator::current
— 返回当前元素
InternalIterator::key
— 返回当前元素的键
InternalIterator::next
— 向前移动到下一个元素
InternalIterator::rewind
— 迭代器返回到第一个元素
InternalIterator::valid
— 检测当前位置是否有效