Voting

: nine minus one?
(Example: nine)

The Note You're Voting On

fsb at thefsb dot org
5 years ago
We no longer need array_merge() as of PHP 7.4.

[...$a, ...$b]

does the same as

array_merge($a, $b)

and can be faster too.

https://wiki.php.net/rfc/spread_operator_for_array#advantages_over_array_merge

<< Back to user notes page

To Top