Since PHP 8.6, three session INI directives have new default values, which make sessions more secure out of the box. Before PHP 8.6, these directives had to be changed manually...
Since PHP 8.6, the error message returned by the json_last_error_msg function and the message of the JsonException class include the location of the error. The location is added at the...
Since PHP 8.6, a new stream_last_errors function returns the errors of the last failed stream operation. Each error is a StreamError object. Before PHP 8.6, the reason of a failure...
Since PHP 8.6, the trim, ltrim and rtrim functions remove the form feed character (\f) by default. The default list of trimmed characters is now " \f\n\r\t\v\x00". Before PHP 8.6...
Since PHP 8.6, the pack and unpack functions accept the < and > endianness modifiers, which set the byte order of the binary data. The < modifier means little-endian and...
The ini_get_all function returns an array of all INI directives together with details about each one. Since PHP 8.6, this array contains a new builtin_default_value key, which holds the value...
Since PHP 8.6, the clamp function is available, which limits a value to a given range. A value below the range becomes the minimum, a value above the range becomes...
The standard library has shipped two tracing profilers for a long time. cProfile is written in C, and profile is written in Python and does the same job more slowly...
A function can be fast but still slow down a program if it runs many times. Timing the whole script won't show this because each individual call is quick. Since...