Search Results
The EmptyIterator class Table of Contents ¶ EmptyIterator::current — The current () method EmptyIterator::key — The key () method EmptyIterator::next — The next () method EmptyIterator::rewind — The rewind () method EmptyIterator::valid — Checks whether the current element is valid
Class synopsis classEmptyIteratorimplements Iterator { /* Methods */ public current (): never public key (): never public next (): void public rewind (): void public ...
Sep 24, 2015 · In PHP Manual, has a class called EmptyIterator The manual says of the EmptyIterator::rewind() method: No operation, nothing to do. And the other methods of this class throw exceptions or return...
EmptyIterator::valid (PHP 5 >= 5.1.0, PHP 7, PHP 8) EmptyIterator::valid — The valid () method
Class synopsis EmptyIteratorimplements Iterator { /* Methods */ public current ( void ) : mixed public key ( void ) : scalar public next ( void ) : void public rewind ( void ) : void public valid ( void ) : bool }
Checks whether the current element is valid. Note: The EmptyIterator is always empty and will never have a valid value. The return value is always false.
Mar 15, 2026 · The EmptyIterator is always empty and will never have a valid value. The return value is always false.
