Showing 7 of 1,216 result(s)
The dot helper method will take a multi-dimensional array and return a new associative array where the keys are built from all the nested keys, separated with the . character.
The pull helper method is similar to the get method in that it will return a value for the given $key in the $array (or the $default , if it is specified and the $key does not exists). The difference is that the pull method will remove the item it...
The get helper method will retrieve an item from the given $array using dot notation. This allows developers to retrieve items from the array at arbitrary depths quickly, without having to use PHP's array syntax.
The pluck helper method is used to retrieve a list of specific values from a given $array . It is most useful when used against arrays of objects, but will also work with arrays just as well.
The random method can be used to retrieve random items from an input array. This method will also let you specify the number of random items to be returned from the array; if you do not specify a number of items to return, the method will return...
The sort helper method will allow you to sort the given $array based on some condition returned by the $callback . The method works by iterating over all the values in the $array and passing the values it finds into the $callback function. It then...
The divide helper method will take the given $array and create two new arrays. The first array will be all of the keys from the original $array and the second array will be all of the values.