๐๐ PHP 7.3 is here!
Here are the things I'm excited about.
๐ Trailing commas in function/method calls!
This will certainly be a required styling choice for me. Same delightful benefits of trailing comma in multi-line PHP arrays, and JavaScript objects.
๐งต Less disgusting heredoc syntax!
Inlining heredoc strings in any way right now is grrrosssss. Now we get sensible capabilities. Everything that was wrong with it is now fixed!
(Ignore the bad syntax highlighting)
โ ๏ธ Finally, not-so-silent json_decode error detection!
This really sucked before, now it just sucks a bit less (who wants to pass a 4th param and pass 2 default params first? (helper function anybody?)
๐ Not horrible functions for getting the first and last item (or key) from an array!
Before you either strung a bunch of functions together or messed with internal array pointers. This is a much-needed improvement.