RecursiveIteratorIterator::setMaxDepth

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

RecursiveIteratorIterator::setMaxDepthSet max depth

說(shuō)明

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

Set the maximum allowed depth.

警告

本函數(shù)還未編寫(xiě)文檔,僅有參數(shù)列表。

參數(shù)

maxDepth

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

返回值

沒(méi)有返回值。

錯(cuò)誤/異常

Emits an Exception if maxDepth is less than -1.