Search Results
Move the iterator forward ParentIterator::next (PHP 5 >= 5.1.0, PHP 7, PHP 8) ParentIterator::next — Move the iterator forward
Table of Contents ParentIterator::accept — Determines acceptability ParentIterator::__construct — Constructs a ParentIterator ParentIterator::getChildren — Return the inner iterator's children contained in a ParentIterator ParentIterator::hasChildren — Check whether the inner iterator's current element has children ParentIterator::next — Move the iterator forward ParentIterator ...
Simple usage example of `ParentIterator::next ()`. The PHP function `ParentIterator::next` is used to move the iterator forward to the next element in a collection of elements. It advances the pointer to the next item and returns true if there is another element to iterate over, or false if the end of the collection has been reached.
ParentIterator::__construct — Constructs a ParentIterator ParentIterator::getChildren — Return the inner iterator's children contained in a ParentIterator ParentIterator::hasChildren — Check whether the inner iterator's current element has children ParentIterator::next — Move the iterator forward ParentIterator::rewind — Rewind the ...
The ParentIterator class Introduction (PHP 5 >= 5.1.0, PHP 7) This extended FilterIterator allows a recursive iteration using RecursiveIteratorIterator that only shows those elements which have children. Class synopsis ParentIterator extends RecursiveFilterIterator implements RecursiveIterator , OuterIterator { /* Methods */ public accept ( ) : bool public __construct ( RecursiveIterator ...
ParentIterator::__construct — Constructs a ParentIterator ParentIterator::getChildren — Return the inner iterator's children contained in a ParentIterator ParentIterator::hasChildren — Check whether the inner iterator's current element has children ParentIterator::next — Move the iterator forward ParentIterator::rewind — Rewind the ...
ParentIterator is just a RecursiveFilterIterator whos accept() method calls the RecursiveFilterIterator->hasChildren() method to filter itself. Basically, it filters out leaf nodes.
