# The RecursiveFilterIterator class

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

## 简介

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.

## 类摘要

abstract class RecursiveFilterIterator extends FilterIterator implements RecursiveIterator {
/* 方法 */
public __construct(RecursiveIterator `$iterator`)
public getChildren(): ?RecursiveFilterIterator
public hasChildren(): bool
/* 继承的方法 */
public FilterIterator::accept(): bool
public FilterIterator::current(): mixed
public FilterIterator::key(): mixed
public FilterIterator::next(): void
public FilterIterator::rewind(): void
public FilterIterator::valid(): bool
public IteratorIterator::current(): mixed
public IteratorIterator::getInnerIterator(): ?Iterator
public IteratorIterator::key(): mixed
public IteratorIterator::next(): void
public IteratorIterator::rewind(): void
public IteratorIterator::valid(): bool
}

## 目录

- RecursiveFilterIterator::__construct — Create a RecursiveFilterIterator from a RecursiveIterator
- RecursiveFilterIterator::getChildren — Return the inner iterator's children contained in a RecursiveFilterIterator
- RecursiveFilterIterator::hasChildren — Check whether the inner iterator's current element has children

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open