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 hasChildren(): bool
/* Inherited methods */
}

Table of Contents