> Le 26 juil. 2021 à 15:41, Sara Golemon <poll...@php.net> a écrit :
> 
> A much more direct and maintainable solution would be to introduce a new
> function that intentionally modifies by reference. 

That function already exists, it is `array_push()`:

`$x = array_merge($x, $y);` → `array_push($x, ...$y)`

—Claude
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to