What’s New in PHP 8.2

PHP 8.2 will be released on November 24, 2022 . In this post, we’ll walk through all the features, performance improvements, changes, and deprecations.

# null , true , and false as separate types rfc

PHP 8.2 adds three new types – or something like that. In this post, we’ll avoid going down the type safety rabbit hole, but technically null , true , and false can be considered valid types by themselves. A common example is PHP’s built-in functions, where false is used as the return type when an error occurs. For example in file_get_contents :

 file_get_contents ( /*

The post PHP 8.2 New Features first appeared on Lenix Blog .

This article is reprinted from https://blog.p2hp.com/archives/9144
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.