The ParentIterator class

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

简介

This extended FilterIterator allows a recursive iteration using RecursiveIteratorIterator that only shows those elements which have children.

类摘要

class ParentIterator extends RecursiveFilterIterator implements RecursiveIterator, OuterIterator {
/* 方法 */
public __construct(RecursiveIterator $iterator)
public accept(): bool
public hasChildren(): bool
public next(): void
public rewind(): void
/* 继承的方法 */
}

目录