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...
Using ::class on objects in PHP 8.0

Using ::class on objects in PHP 8.0

Since PHP 5.5, we can use the special ::class constant which allows getting a fully qualified name (FQN) of the class by using ClassName::class syntax. Let's say we have a...

Generate SHA-512 Hash

SHA-512 is a cryptographic hash function that accepts a string of any length and returns a 512-bit fixed-length digest value, commonly represented as a sequence of 128 hexadecimal digits. SHA-512...