array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'cachingiterator.construct.php', 1 => 'CachingIterator::__construct', 2 => 'Construct a new CachingIterator object for the iterator', ), 'up' => array ( 0 => 'class.cachingiterator.php', 1 => 'CachingIterator', ), 'prev' => array ( 0 => 'class.cachingiterator.php', 1 => 'CachingIterator', ), 'next' => array ( 0 => 'cachingiterator.count.php', 1 => 'CachingIterator::count', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/cachingiterator/construct.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

CachingIterator::__construct

(PHP 5, PHP 7, PHP 8)

CachingIterator::__constructConstruct a new CachingIterator object for the iterator

说明

public CachingIterator::__construct(Iterator $iterator, int $flags = CachingIterator::CALL_TOSTRING)
警告

本函数还未编写文档,仅有参数列表。

参数

iterator

Iterator to cache

flags

Bitmask of flags.