Since: 5.5

class IntlIterator implements Iterator (View source)

Methods

mixed
current()

Return the current element

mixed
key()

Return the key of the current element

void
next()

Move forward to next element

void
rewind()

Rewind the Iterator to the first element

bool
valid()

Checks if current position is valid

Details

mixed current()

Return the current element

Return Value

mixed

Can return any type.

mixed key()

Return the key of the current element

Return Value

mixed

TKey on success, or null on failure.

void next()

Move forward to next element

Return Value

void

Any returned value is ignored.

void rewind()

Rewind the Iterator to the first element

Return Value

void

Any returned value is ignored.

bool valid()

Checks if current position is valid

Return Value

bool

The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.