PHP 8.5.0 Beta 3 available for testing

Voting

: one minus zero?
(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