ArrayObject
class ArrayObject extends AbstractArray implements ArrayAccess, Countable, IteratorAggregate, Serializable, Arrayable
Traits
Methods
No description
No description
No description
Append one or more elements onto the end of array
Resets the array
Iterates the array and calls the callback function with the current item as parameter
Flips keys and values
No description
Joins the array with a string
Returns the keys of the array
Merges in other values
Merges in other values, recursively
No description
No description
No description
No description
Prepend one or more elements to the beginning of the array
Iterative reduction of this array or collection with the help of a callback function. The callback function takes two parameters, the first is the carry, the second the current item, with this signature: mixed callback(mixed $carry, mixed $item)
No description
Shift an element off the beginning of array
Extract a slice of the array
Remove a portion of the array and replace it with something else
No description
Returns the values of the array
Details
at line 35
__construct(array $contents = [])
at line 39
array
__serialize()
at line 43
void
__unserialize(array $data)
at line 90
ArrayObject
append(mixed ...$elements)
Append one or more elements onto the end of array
at line 71
ArrayObject
clear()
Resets the array
in EachPart at line 18
void
each(callable $callback)
Iterates the array and calls the callback function with the current item as parameter
at line 227
ArrayObject
flip()
Flips keys and values
at line 47
ArrayIterator
getIterator()
at line 152
Text
join(string $glue = '')
Joins the array with a string
at line 209
ArrayObject
keys()
Returns the keys of the array
at line 185
ArrayObject
merge(mixed ...$toMerge)
Merges in other values
at line 198
ArrayObject
mergeRecursive(mixed ...$toMerge)
Merges in other values, recursively
at line 258
bool
offsetExists(mixed $offset)
at line 278
mixed
offsetGet(mixed $offset)
at line 245
void
offsetSet(mixed $offset, mixed $value)
at line 267
void
offsetUnset(mixed $offset)
in PopPart at line 18
mixed
pop()
Pop the element off the end of array
at line 103
ArrayObject
prepend(mixed ...$elements)
Prepend one or more elements to the beginning of the array
in ReducePart at line 25
mixed
reduce(callable $callback, mixed $fallback = null)
Iterative reduction of this array or collection with the help of a callback function. The callback function takes two parameters, the first is the carry, the second the current item, with this signature: mixed callback(mixed $carry, mixed $item)
in RemovePart at line 20
RemovePart
remove(mixed ...$elements)
Removes one or more elements from the array
in ReversePart at line 18
ReversePart
reverse()
Reverses the order of all elements
at line 51
string
serialize()
at line 114
mixed
shift()
Shift an element off the beginning of array
at line 174
ArrayObject
slice(int $offset, int|null $length = null, bool $preserveKeys = false)
Extract a slice of the array
at line 129
ArrayObject
splice(int $offset, int|null $length = null, array $replacement = [])
Remove a portion of the array and replace it with something else
at line 60
ArrayObject
unserialize(string $serialized)
at line 218
ArrayObject
values()
Returns the values of the array