Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<OuterIterator::getInnerIteratorRecursiveIterator::getChildren>
^InterfacesLast updated: Mon, 26 Oct 2026

The RecursiveIterator interface

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

Introduction

Classes implementing RecursiveIterator can be used to iterate over iterators recursively.

Interface synopsis

interface RecursiveIterator extends Iterator {
/* Methods */
public function getChildren(): ?RecursiveIterator
public function hasChildren(): bool
/* Inherited methods */
public function Iterator::current(): mixed
public function Iterator::key(): mixed
public function Iterator::next(): void
public function Iterator::rewind(): void
public function Iterator::valid(): bool
}

Table of Contents


<OuterIterator::getInnerIteratorRecursiveIterator::getChildren>
^InterfacesLast updated: Mon, 26 Oct 2026