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 dbx 函数 fetches rows from a query result that had the dbx result unbuffered flag setphp oci8 函数 returns the next child statement resource from a parent statement resource that has oracle database 12c implicit result setsphp socket 函数 create and bind to a socket from a given addrinfophp socket 函数 create and connect to a socket from a given addrinfophp ssdeep 函数 create a fuzzy hash from a filephp intlbreakiterator create break iterator for boundaries of combining character sequencesphp intlbreakiterator create break iterator for boundaries of code pointsphp intlbreakiterator create iterator for navigating fragments between boundariesphp intlcalendar create an intlcalendar from a datetime object or stringphp intlrulebasedbreakiterator create iterator from rulesetphp intlrulebasedbreakiterator get the largest status value from the break rules that determined the current break positionphp intlrulebasedbreakiterator get the status values from the break rules that determined the current break positionphp iteratoriterator create an iterator from anything that is traversablephp iteratoriterator get the inner iteratorphp mongocursorinterface checks if there are results that have not yet been sent from the databasephp phardata construct a tar or zip archive from an iteratorphp recursivefilteriterator create a recursivefilteriterator from a recursiveiterator
关注编程学问公众号