PHP allows defining type declarations for parameters, return values, and properties. Since PHP 8.1, we can use never return type. It indicates that a function or class method throws an...
Since PHP 8.1, class properties can be declared as readonly. This means that class property can be initialized once and cannot be modified later. Readonly properties are declared with readonly...
XXH64 is a variant of xxHash non-cryptographic hash function that accepts a string of any length and returns a 64-bit fixed-length digest value, commonly represented as a sequence of 16...
PHP has spread operator (...) which allows unpacking arrays. When array is prefixed with spread operator, an array elements are spread in place. The spread operator can be used multiple...
PHP provides the fputcsv function which formats an array of fields as a CSV line and writes it to a file. Since PHP 8.1, this function accepts a new optional...
AVIF is a pretty new image format compared with PNG or JPEG. Since PHP 8.1, GD extension can be compiled with AVIF support.
The gd_info function returns features of the...
PHP allows specifying types for function and class method parameters. Passing null to a non-nullable parameter will emit a fatal error. In versions prior to PHP 8.1, this behavior only...
XXH32 is a variant of xxHash non-cryptographic hash function that accepts a string of any length and returns a 32-bit fixed-length digest value, commonly represented as a sequence of 8...
MySQLi is a PHP extension that allows to use the functionality provided by MySQL database. MySQLi supports five different error modes, which defines how MySQLi should behave when an error...
When working with arrays, there might be a case to determine if an array is a list. Since PHP 8.1, the array_is_list function can be used to check whether a...