Comment on page
⚡Chain method
The chaining-methods is member methods that returns an ArrayUtils instance.
This chaining-method returns anArrayUtils
instance. Because of this, allowing the calls to be chained together in a single statement without requiring variables to store the intermediate results.
You can use two prefix at once.
var_export(ArrayUtils::reverseFromAs([1,2,3,4,5]));
//array (0 => 5, 1 => 4, 2 => 3, 3 => 2, 4 => 1)
Last modified 3yr ago