RecursiveIteratorIterator::setMaxDepth

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

RecursiveIteratorIterator::setMaxDepthSet max depth

Descrizione

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

Set the maximum allowed depth.

Avviso

Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.

Elenco dei parametri

maxDepth

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

Valori restituiti

Nessun valore viene restituito.

Errori/Eccezioni

Emits an Exception if maxDepth is less than -1.