RecursiveIteratorIterator::setMaxDepth

(PHP 5 >= 5.1.0, PHP 7)

RecursiveIteratorIterator::setMaxDepthSet max depth

说锟斤拷

public RecursiveIteratorIterator::setMaxDepth ([ int $max_depth = -1 ] ) : void

Set the maximum allowed depth.

Warning

锟斤拷锟斤拷锟斤拷锟斤拷未锟斤拷写锟侥碉拷锟斤拷锟斤拷锟叫诧拷锟斤拷锟叫憋拷

锟斤拷锟斤拷

max_depth

The maximum allowed depth. -1 is used for any depth.

锟斤拷锟斤拷值

没锟叫凤拷锟斤拷值锟斤拷

锟斤拷锟斤拷锟届常

Emits an Exception if max_depth is less than -1.