Re:PHP 8.4
by nedt on Thursday November 21, 2024 @07:03PM
(#42209957)
array_search() has the same needle, haystack order as in_array() or array_key_exists().
array_find() has a callback and takes the same order as array_walk() or array_filter().
It's just array_map() that's different, but that's because it can take multiple arrays.
And writing your own function with a prefix already used by PHP in the global namespace is just not a very good idea.
[ Parent
| on HN ]
There are no comments on this comment yet.