Search

Showing 7 of 1,216 result(s)

/blog/2018/04/11/laravel-5-removing-elements-from-an-array-with-forget#content-global-arrayforget-helper-function

The array_forget function is a shortcut to calling Arr::forget . This function is declared in the global namespace.

/blog/2018/04/11/laravel-5-representing-multi-dimensional-arrays-in-dot-notation-with-dot#content-example-use

The following example demonstrates the dot method without using the $prepend argument: The final array would look like this: The dot method also accepts a value for $prepend which will be added to the beginning of all the newly generated keys....

/blog/2018/04/11/laravel-5-retrieving-and-removing-an-element-from-an-array-with-pull#content-example-use

Consider the following array, which is probably familiar to most people these days: A lot of people do not like Mondays. Let's demote Monday to the $theWorstDayOfTheWeek while also removing it from our $weekDays : The $weekDays array would now...