RecursiveIteratorIterator::setMaxDepth Set max depth &reftitle.description; public voidRecursiveIteratorIterator::setMaxDepth stringmax_depth-1 Set the maximum allowed depth. &warn.undocumented.func; &reftitle.parameters; max_depth The maximum allowed depth. -1 is used for any depth. &reftitle.returnvalues; &return.void; &reftitle.errors; Emits an Exception if max_depth is less than -1.