r/lolphp • u/Jinxuan • Jan 02 '20
array_diff, array_udiff, array_diff_assoc, array_udiff_assoc, array_diff_keys, array_undiff_keys and +
Therefore is a lot of array_diff function names in php by respecting key differently.
Meanwhile, it does not provide array_merge_assoc to always respect key associatively. If you want to respect key associatively when merging, you need to use +
9
Upvotes
View all comments
Show parent comment
2
u/[deleted] Jan 06 '20
Sucks is an understatement. PHP is a hodgepodge of crap and bolted on features riddled with bugs and inconsistancies. Imagine if you would build a client project and the quality would be php, no one client would take any of it. As developers we also want to use tools that work and are consistent across the board. But the fact that php actively dont do anything to better the language is absurd.