05 Php New Features 05 Php New Features

05 — New Features in PHP 8.3

New Function
json_validate()

json_validate() is intended to serve as a more covenient way to check JSON code for validity.

New Method
Randomizer::getBytesFromString()

Randomizer::getBytesFromString() is intended to serve as a more convenient way to generate random strings containing only specific bytes.

New Methods
Randomizer::getFloat() and Randomizer::nextFloat()

Randomizer::getFloat() and Randomizer::nextFloat() are intended to serve as more reliable ways to generate unbiased random floating-point numbers.

Summary

Some of the newest additions to PHP are json_validate(), Randomizer::getBytesFromString(), Randomizer::getFloat(), and Randomizer::nextFloat().