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...
In versions prior to PHP 8.0, in order to check if a string contains a given substring, we can use the strpos function. This function returns the position of the...
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...
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...
Environment variable is a named value on a computer that can be used to affect running processes. Programming languages provides methods to get a list of all the environment variables...
A leap year is a year that contains an additional day (February 29). A leap year has 366 days instead of the 365 days. It occurs every four years. Programming...
Node.js is an open-source runtime environment that allows to run JavaScript code on the server without a browser. It is based on Chrome's V8 JavaScript engine. Node.js is commonly used...
MQTT clients can publish messages to a MQTT broker, and other clients can subscribe to message topics which they want to receive. However, there might be a case where we...
Git is an open-source version control system that is used track a file changes. Git is commonly used by developers during software development.
This tutorial shows how to install Git...
Java is a programming language that is used in various applications and systems. OpenJDK and Oracle JDK are two implementations of the Java based on same specification. The main difference...