No Unknown For array_merge()ΒΆ

A PHP variadic argument collects all the unused named parameters, along with their key. That way, it is possible to handle them with their name inside the method.

On the other hand, array_merge (and some cousins) refuse them, and emits a Fatal error. There, it is important to use array_values() to avoid named parameters.

../_images/no_unknown_for_array_merge.png