On 17-05-19 22:52, G. P. B. wrote: > > So as a side note aren't there maybe some other array functions which > behave like this? >
Good point. I did a quick scan of the source code and came up with a list of possible candidates for a similar treatment: array_map() array_diff() & friends array_intersect() & friends compact() While I would not expect these functions to be used a lot with spread operators in the same way array_push() or array_merge() are used, fixing them in the same way may still be good for the sake of consistency. Any other functions I overlooked? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
