Re: Calling array_merge / array_merge_recursive without arguments

From: Date: Fri, 17 May 2019 20:52:14 +0000
Subject: Re: Calling array_merge / array_merge_recursive without arguments
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-105738@lists.php.net to get a copy of this message
On Fri, 17 May 2019 at 21:53, Dik Takken <d.takken@xs4all.nl> wrote: > Hello, > > I just created a pull request that changes the array_merge / > array_merge_recursive functions such that they allow being called > without arguments: > > https://github.com/php/php-src/pull/4175 > > This is my first attempt to contribute, feedback is highly appreciated. > > please advise on how to proceed. > > Regards, > Dik Takken > Good catch, I do like the idea it is a bit in the same spirit in how as of PHP 7.3 array_unshift and array_push can be called without arguments now. So as a side note aren't there maybe some other array functions which behave like this? Best Regards George P. Banyard

« previous php.internals (#105738) next »