The pad method will pad the current collection instance's elements up to the provided size with the given value (based on the integer size of the collection). ...
The tap method will allow you supply a callback that will receive a copy of the current collection instance.
The pipe method is similar to the tap method in that it executes the provided $callback function on a copy of the collection; however, unlike the tap method, ...
The each method can also be used with higher order messaging, which allows us to invoke collection methods and access properties on objects using PHP's property...
IndexValue0 Odd. 1 Even. 2 1 Odd. 3 Even. 4 2 Odd. 5 Even. 6 3 Odd. 7 Even. 8 4 Odd. 9 Even. 4 We can use the mapSpread method to replicate the behavior of ...
Covering topics from JavaScript to Laravel, and everything in-between since 2012.
© Stillat, LLC. All right reserved. Code highlighting provided by Torchlight