Version 8.2 of the PHP language has been released. PHP 8.2.0 is a major version update for the PHP language. It includes read-only classes, null, false, and true as separate types, deprecated dynamic properties, performance improvements, and more. These include: a new “Random” extension, which provides a new object-oriented API for random number generation; the creation of dynamic properties has been deprecated to help avoid errors and typos unless the class is passed using #[\AllowDynamicProperties] property to select. stdClass allows dynamic properties; etc.
This article is transferred from: https://www.solidot.org/story?sid=73614
This site is only for collection, and the copyright belongs to the original author.