Re:Whats New in PHP 8.2
by tored on Monday April 25, 2022 @11:30AM
(#31156262)
There is actually some consistency, array functions have the same parameter order and string functions have theirs, it just different order between these two groups of functions.
[ Parent
| on HN ]
Re:Whats New in PHP 8.2
by Reubensson on Monday April 25, 2022 @11:51AM
(#31156600)
> array functions have the same parameter order and string functions have theirs
Except when they have different order :)
array_filter(array $array, ?callable $callback = null, int $mode = 0): array
array_map(?callable $callback, array $array, array ...$arrays): array