by Minor49er · 5y ago · 0 comments
$array = array_merge(["a" => 0], $array1, $array2);
could be replaced with this: $array = ["a" => 0, ...$array1, ...$array2];
It seems small here, but anything that stops devs from having to nest a bunch of array*() calls in PHP is an excellent change. I don't know how many times I've come across code that does something like this: $array = array_values(array_unique(array_filter(array_merge($one, $two, $three))));