ArrayList
class ArrayList implements ArrayAccess, Countable, IteratorAggregate
Generic list with integer indices.
Methods
getIterator()
No description
int
count()
No description
void
offsetSet(?int $index, T $value)
Replaces or appends an item.
mixed
offsetGet(int $index)
Returns an item.
bool
offsetExists(int $index)
Determines whether an item exists.
void
offsetUnset(int $index)
Removes the element at the specified position in this list.
void
prepend(mixed $value)
Prepends an item.
Details
at line 30
static ArrayList
from(array $array)
Transforms array to ArrayList.
at line 45
Iterator
getIterator()
No description
at line 53
int
count()
No description
at line 65
void
offsetSet(?int $index, T $value)
Replaces or appends an item.
at line 85
mixed
offsetGet(int $index)
Returns an item.
at line 99
bool
offsetExists(int $index)
Determines whether an item exists.
at line 110
void
offsetUnset(int $index)
Removes the element at the specified position in this list.
at line 124
void
prepend(mixed $value)
Prepends an item.