Coronavirus (COVID-19) has affected many countries around the world. One of the protection method is to wear a face mask in public spaces. Many service providers and event organizers require...
SHA3-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. SHA3-512...
Since PHP 7.0, we can use the intdiv function to perform the integer division. It is a mathematical operation that divides two numbers and returns the integer part by removing...
The division operator (/) is an arithmetic operator that allows to divide one number by another. This operator returns a floating-point number, unless both operands are integers. In this case...
XML-RPC is a protocol that allows to call a function or procedure on a remote system. XML-RPC uses XML format to define requests and the HTTP protocol to send them...
Apache HTTP Server is an open-source web server that delivers web content to clients who request it. There are various methods how Apache can handle PHP scripts. Apache allows using...
PHP provides various functions to sort an array, such as sort, asort, ksort, etc. In versions prior to PHP 8.0, all PHP sorting functions are unstable. This means that the...
PHP provides functions that allow to sort an array using a user-defined comparison function. The comparison function must return an integer greater than zero if first element is larger than...
PHP allows defining optional parameters in function and method signatures. These parameters have a default value, which can be specified by using an equals (=) sign. If no argument is...
The new keyword allows creating an instance of a class. In versions prior to PHP 8.0, the new keyword can only be used with identifiers.
Let's say we have a...