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...
The instanceof operator allows checking if an object is an instance of a class or that class implements an interface. In versions prior to PHP 8.0, the instanceof operator can...
PHP has built-in web server that designed to use for testing, development or application demonstration purposes. Since 8.0, the built-in web server allows to bind to port 0. It will...