PHP allows defining constants using define function. Defined constants are case-sensitive. For example, DB_USER and db_user represents different constants.
In versions prior to PHP 8.0, it was possible to define...
PHP has the display_startup_errors directive that specifies whether the errors must be displayed that occurred during PHP startup process. If this directive explicitly not set, default value will be used...
PHP has the error_reporting directive that specifies which type of errors to report. If error reporting level explicitly not set, default value will be used. For example, we can set...
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...