Methods
Count all items
count() : int
Return the current element
current() : mixed
Return the key of the current element
key() : mixed
Move forward to next element
next() : mixed
Check if an offset exists
offsetExists(mixed $offset) : bool
Parameters
$offset
mixed
Returns
bool
Unset an item
offsetUnset(mixed $offset) : void
Rewind the Iterator to the first element
rewind() : void
Seek to an absolute position
seek(int $index) : void
Parameters
$index
int
Exceptions
Spread values in the items relative to their weight
spreadWeightValues(array $values) : void
Parameters
$values
array
Exceptions
Check if there is a current element after calls to rewind() or next()
valid() : bool
Properties
Items in this list
$items : array