Use Random Extension in PHP 8.2

Use Random Extension in PHP 8.2

Since PHP 8.2, we can use a new extension named Random for generating random numbers via object-oriented way. Random extension is a part of the PHP core and there is...
Readonly Classes in PHP 8.2

Readonly Classes in PHP 8.2

Since PHP 8.2, classes can be declared as readonly. This means that all class properties automatically becomes readonly. The readonly properties were introduced in PHP 8.1. These properties can be...