24
mikk150
7y

Php array methods, all of them, or should i say hash methods

They should fix them. I mean they should fix placing of callback and subject params, because.
I mean
array_filter(array, callback)
array_map(callback, array)

Or they should make array a object like js

Comments
  • 1
    You could pull in Illuminate\Support\Collection from laravel (even if you're not using the framework)
  • 0
    Or write your own object wrapper around the array :) but yeah, I agree it's very annoying
  • 0
    Or move on, lol. Does anyone actually use PHP anymore? Just curious.
  • 0
    @sudarshansunder Yeah, quite a lot of people use PHP, not only the script kiddies, but also some larger companies.
Add Comment