7

PHP is such an absolute shit.

`array_map` takes function first param, array second param

`array_walk`, which is similar for associate arrays, takes array first param, function second param

and at the same time, the function of `array_walk` takes parameters in `value, key` order

what the crazy fuck this is.

Comments
  • 0
    Seems like several developers wrote the code without any code reviews. I use Object Oriented PHP daily and it can be frustrating.
  • 0
    I always wondered why those array functions take their arguments in different order 😂
Add Comment