Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: max(four, seven)?
(Example: nine)

The Note You're Voting On

mike at eastghost dot com
7 years ago
An Iterator is "valid" when it has additional elements, beyond its element index.

Said another way: After an Iterator is next()'d to its final element, the Iterator is no longer "valid".

Said another way: A "hasNext" check would simply return ::valid()

<< Back to user notes page

To Top