On 10/30/2016 4:08 PM, Rasmus Schultz wrote: > But either way, I think I'm changing my mind about this one. > > And if the these functions support only arrays, then also the names > should probably be array_first() and array_last() for consistency with > other array-only functions. > > Perhaps better to make people be explicit, rather than trying to hide > side-effects to achieve shorter syntax... >
+1 All of these concerns might be hypothetical but I see so much abuse every day that I prefer to be super conservative rather than trusting people to do the right thing. -- Richard "Fleshgrinder" Fussenegger -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php