trait IteratorTrait (View source)

Methods

rewind()

Reset the iterator

mixed
current()

Get the current element

string|int
key()

Return the current key

next()

Move to next element

boolean
valid()

Check if element is valid (isset)

Details

rewind()

Reset the iterator

mixed current()

Get the current element

Return Value

mixed

string|int key()

Return the current key

Return Value

string|int

next()

Move to next element

boolean valid()

Check if element is valid (isset)

Return Value

boolean