RecursiveIteratorIterator
PHP Manual

RecursiveIteratorIterator::setMaxDepth

(PHP 5 >= 5.1.0, PHP 7)

RecursiveIteratorIterator::setMaxDepthSet max depth

설명

public void RecursiveIteratorIterator::setMaxDepth ([ string $max_depth = -1 ] )

Set the maximum allowed depth.

Warning

이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다.

인수

max_depth

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

반환값

값을 반환하지 않습니다.

오류/예외

Emits an Exception if max_depth is less than -1.


RecursiveIteratorIterator
PHP Manual