Search

Showing 7 of 1,216 result(s)

/blog/2016/11/20/laravel-application-helper-response

response($content = '', $status = 200, array $headers = []) The response helper function is a useful function that can be used to accomplish two different tasks. If no arguments are supplied to the response function, an implementation of...

/blog/2016/11/20/laravel-array-helper-function-array_prepend-easily-add-an-item-to-the-beginning-of-an-array

prepend($array, $value, $key = null) The prepend helper method is used to push a new $value onto the beginning of an existing $array . It defines one optional parameter: $key . If an argument is supplied for $key , the new item will be given that...

/blog/2016/11/20/laravel-array-helper-function-array_sort

sort($array, callable $callback) 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...

/blog/2016/11/20/laravel-array-helper-function-array_where

where($array, callable $callback) The where helper method is functionally similar to the pluck method, in that both take a source $array and filter it to produce a smaller array. It works by iterating over each element in the $array and executing...

/blog/2016/11/20/laravel-array-helper-function-checking-if-a-key-exists-in-an-array-or-collection

exists($array, $key) The exists helper method is similar to PHP's array_key_exists function in that in can be used to check if the given $key or index exists with the provided $array . The exists method defines two parameters, and both are...

/blog/2016/11/20/laravel-array-helper-function-determining-if-a-value-is-an-array

accessible($value) The accessible helper method is used to determine whether the given $value is array accessible. A value $value is array accessible if the value is an array or an instance of ArrayAccess . The following examples demonstrate the...

/blog/2016/11/20/laravel-array-helper-function-isassoc-checking-if-an-array-is-associative

isAssoc(array $array) The isAssoc helper method can be used to determine if a given $array is an associative array or not. The provided documentation for the isAssoc method states that an array is associative if it does not have sequential numeric...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.