RecursiveIteratorIterator::setMaxDepth
PHP Manual
PHP Manual»RecursiveIteratorIterator»RecursiveIteratorIterator::setMaxDepth

RecursiveIteratorIterator::setMaxDepth

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

RecursiveIteratorIterator::setMaxDepth — Set max depth

Опис

public function 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.

To Top