Iterator
interface Iterator implements Traversable (View source)
Interface for external iterators or objects that can be iterated themselves internally.
Methods
mixed
current()
Return the current element
void
next()
Move forward to next element
mixed
key()
Return the key of the current element
bool
valid()
Checks if current position is valid
void
rewind()
Rewind the Iterator to the first element
Details
mixed
current()
Return the current element
void
next()
Move forward to next element
mixed
key()
Return the key of the current element
bool
valid()
Checks if current position is valid
void
rewind()
Rewind the Iterator to the first element