update page now
Longhorn PHP 2026 - Call For Papers

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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top