On 14/03/2020 15:57, Mike Schinkel wrote:
What you are looking for are Named Parameters, there have been multiple
RFCs about which have all been more or less abandoned from what I see.
https://wiki.php.net/rfc/namedparameters (From 2012)
https://wiki.php.net/rfc/named_params (From 2013)
https:/
> On Mar 14, 2020, at 11:07 AM, G. P. B. wrote:
>
> On Sat, 14 Mar 2020 at 15:43, Midori Koçak wrote:
>
>> Dear Internals,
>>
>> I would like to as you a question. I know that it is possible to use an
>> array to function parameters like: function(...array); But this method is
>> not working w
On Sat, 14 Mar 2020 at 15:43, Midori Koçak wrote:
> Dear Internals,
>
> I would like to as you a question. I know that it is possible to use an
> array to function parameters like: function(...array); But this method is
> not working when the array is associative.
>
> Would not be fine if an arra
I might be off here, but I believe the issue with that is that it's a
performance problem. You would have to check each key and function
parameter for a match, which would be slow.
You can, however, achieve what you're after just by using an array without
any packing/unpacking.
function foo(Array