PHP - Manual: RecursiveTreeIterator::__construct
2024-12-21
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
RecursiveTreeIterator::__construct — Construct a RecursiveTreeIterator
$iterator
,$flags
= RecursiveTreeIterator::BYPASS_KEY,$cachingIteratorFlags
= CachingIterator::CATCH_GET_CHILD,$mode
= RecursiveTreeIterator::SELF_FIRSTConstructs a new RecursiveTreeIterator from the supplied recursive iterator.
本函数还未编写文档,仅有参数列表。
iterator
The RecursiveIterator or IteratorAggregate to iterate over.
flags
Flags may be provided which will affect the behavior of some methods. A list of the flags can found under RecursiveTreeIterator predefined constants.
caching_it_flags
Flags to affect the behavior of the RecursiveCachingIterator used internally.
mode
Flags to affect the behavior of the RecursiveIteratorIterator used internally.
官方地址:https://www.php.net/manual/en/recursivetreeiterator.construct.php