removeFirst()
removeFirst() : $this
remove first element of given array
implode(string $glue, string $key = null) : string
The method joins the items in a collection.
string | $glue | The string you wish to place between the values. |
string | $key | If the value contains arrays or objects, you should pass the key of the attributes you wish to join |
key(string|integer|\app\framework\Component\StdLib\StdObject\StringObject\StringObject $key, null|mixed $value = null, boolean $setOnlyIfDoesntExist = false) : $this|mixed|\app\framework\Component\StdLib\StdObject\StringObject\StringObject
Get or update the given key inside current array.
string|integer|\app\framework\Component\StdLib\StdObject\StringObject\StringObject | $key | Array key |
null|mixed | $value | If set, the value under current $key will be updated and not returned. |
boolean | $setOnlyIfDoesntExist | Set the $value only in case if the $key doesn't exist. |
The value of the given key.
map(callable $call) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject
The method iterates through the array and passes each value to the given callback. The callback is free to modify the item and return it, thus forming a new ArrayObject of modified items
callable | $call |
merge(array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject $array) : $this
Merge given $array with current array.
array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject | $array |
mergeRecursive(array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject $array) : $this
Merge given $array with current array.
array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject | $array |
rand(integer $num = 1) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject
integer | $num |
unique(integer $sortFlag = SORT_REGULAR) : $this
Removes duplicate values from an array
integer | $sortFlag | Sorting type flags: |
sortUsingFunction(callable $comparisonFunction) : $this
Sort an array by values using a user-defined comparison function<br /> This function assigns new keys to the elements in array. It will remove any existing keys that may have been assigned, rather than just reordering the keys.<br /> The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
callable | $comparisonFunction |