RecursiveIteratorIterator::setMaxDepth

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

RecursiveIteratorIterator::setMaxDepthSet max depth

Açıklama

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

Set the maximum allowed depth.

Uyarı

Bu işlev hala belgelendirilmemiştir; sadece bağımsız değişken listesi mevcuttur.

Bağımsız Değişkenler

maxDepth

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

Dönen Değerler

Hiçbir değer dönmez.

Hatalar/İstisnalar

Emits an Exception if maxDepth is less than -1.