The RecursiveFilterIterator class

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

Introduction

This abstract iterator filters out unwanted values for a RecursiveIterator. This class should be extended to implement custom filters. The RecursiveFilterIterator::accept() must be implemented in the subclass.

Class synopsis

abstract class RecursiveFilterIterator extends FilterIterator implements RecursiveIterator {
/* Methods */
public __construct(RecursiveIterator $iterator)
public hasChildren(): bool
/* Inherited methods */
public FilterIterator::accept(): bool
public FilterIterator::next(): void
public FilterIterator::rewind(): void
public FilterIterator::valid(): bool
}

Table of Contents