Associated Arrays as function parameters
| From: | Midori Koçak | Date: | Sat, 14 Mar 2020 14:43:06 +0000 |
| Subject: | Associated Arrays as function parameters | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-109010@lists.php.net to get a copy of this message | ||
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 array like ['param1'=>'value', 'param2'
=> 'value']
would be used in a function like function(param1, param2) regardless of the
order?
I think it would make our lives is easier. I'd be also happy if you know if
there is more effective method to achieve the same result.
Thanks,
Midori