The InfiniteIterator class

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

Introduction

The InfiniteIterator allows one to infinitely iterate over an iterator without having to manually rewind the iterator upon reaching its end.

Class synopsis

class InfiniteIterator extends IteratorIterator {
/* Methods */
public __construct(Iterator $iterator)
public next(): void
/* Inherited methods */
}

Table of Contents

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top