The SitePoint PHP blog has a new article posted sharing "what's new and exciting in PHP 7.1", the latest major version release in the PHP 7.x series. This version was released on December 1st of 2016.
The PHP community has gone viral with the latest PHP 7 announcement and all the goodies it brings to the language. The PHP 7.1 release has more good news and features to offer. This article highlights the most important ones, and you should check PHP RFC for the full list.
Included in their list of enhancements are features like:
- the ArgumentCountError Exception
- Nullable Types
- the Iterable Type
- Catching Multiple Exception Types
- Invalid String Arithmetics
For each item on the list some brief code examples are provided, often showing the difference between the new behavior and previous PHP versions.