Union Types in PHP 8.0

Union Types in PHP 8.0

In versions prior to PHP 8.0, we can specify a single type for parameters, return values, and properties. Since PHP 8.0, we can use union types. A union type allows...
Named Arguments in PHP 8.0

Named Arguments in PHP 8.0

PHP supports positional arguments. It means that we need to pass these arguments to a function or method based on the parameter position. The order of these arguments are important...
Default PDO Error Mode in PHP 8.0

Default PDO Error Mode in PHP 8.0

PDO is a PHP extension that provides a uniform way to access various databases (MySQL, PostgreSQL, etc.). PDO supports three different error modes. Error mode defines how PDO should behave...