7 ms·
This is terribly misguided. You do know that PHP has built-in min and max functions, right? And array_map. And array_walk. And array_filter. And ar
by KevBurnsJr 15y ago
This is terribly misguided.
You do know that PHP has built-in min and max functions, right?
And array_map.
And array_walk.
And array_filter.
And array_reduce.
And array_slice.
And array_unique.
And array_search.
And range.
And empty.
And is_object.
And is_array.
- enaeseth 15y agoAll of the array_* functions, as their names suggest, only apply to arrays. Underscore methods work on arrays or any Traversable (Iterator or IteratorAggregate) object. It's nice to have.