IteratorIterator::__construct

(PHP 5 >= 5.1.0, PHP 7)

IteratorIterator::__constructCreate an iterator from anything that is traversable

说明

public IteratorIterator::__construct ( Traversable $iterator )

Creates an iterator from anything that is traversable.

参数

iterator

The traversable iterator.

返回值

没有返回值。

参见

  • Traversable

相关文章
php arrayobject create a new iterator from an arrayobject instancephp callbackfilteriterator create a filtered iterator from another iteratorphp directoryiterator constructs a new directory iterator from a pathphp eventbuffer prevent calls that modify an event buffer from succeedingphp dbx 函数 fetches rows from a query result that had the dbx result unbuffered flag setphp socket 函数 create and bind to a socket from a given addrinfophp imagickdraw indicates that following commands create named elements for early processingphp intlbreakiterator create break iterator for boundaries of combining character sequencesphp intlbreakiterator create break iterator for title casing breaksphp intlbreakiterator create break iterator for word breaksphp intlbreakiterator create iterator for navigating fragments between boundariesphp intlcalendar create an intlcalendar from a datetime object or stringphp intlrulebasedbreakiterator create iterator from rulesetphp intltimezone create a timezone object from datetimezonephp iteratoriterator create an iterator from anything that is traversablephp iteratoriterator get the inner iteratorphp mongocommandcursor checks if there are results that have not yet been sent from the databasephp mongocursor checks if there are results that have not yet been sent from the databasephp mongocursorinterface checks if there are results that have not yet been sent from the databasephp recursivefilteriterator create a recursivefilteriterator from a recursiveiterator
关注编程学问公众号