ArrayList
class ArrayList implements ArrayAccess, Countable, IteratorAggregate
Provides the base class for a generic list (items can be accessed by index).
Methods
getIterator()
Returns an iterator over all items.
int
count()
Returns items count.
void
offsetSet($index, $value)
Replaces or appends a item.
mixed
offsetGet($index)
Returns a item.
bool
offsetExists($index)
Determines whether a item exists.
void
offsetUnset($index)
Removes the element at the specified position in this list.
void
prepend($value)
Prepends a item.
Details
at line 27
ArrayIterator
getIterator()
Returns an iterator over all items.
at line 37
int
count()
Returns items count.
at line 50
void
offsetSet($index, $value)
Replaces or appends a item.
at line 73
mixed
offsetGet($index)
Returns a item.
at line 90
bool
offsetExists($index)
Determines whether a item exists.
at line 102
void
offsetUnset($index)
Removes the element at the specified position in this list.
at line 119
void
prepend($value)
Prepends a item.
Traits
Strict class for better experience.