RecursiveIteratorIterator::setMaxDepth

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

RecursiveIteratorIterator::setMaxDepthSet max depth

说明

public RecursiveIteratorIterator::setMaxDepth(int $maxDepth = -1): void

Set the maximum allowed depth.

警告

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

参数

maxDepth

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

返回值

没有返回值。

错误/异常

Emits an Exception if maxDepth is less than -1.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top