IteratorIterator::__construct

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

IteratorIterator::__constructCreate an iterator from anything that is traversable

说明

public IteratorIterator::__construct ( Traversable $iterator , string|null $class = null )

Creates an iterator from anything that is traversable.

参数

iterator

The traversable iterator.

返回值

没有返回值。

参见

  • Traversable

User Contributed Notes

There are no user contributed notes for this page.
PHP8中文手册 站长在线 整理 版权归PHP文档组所有