The php.ini is a configuration file which is read when PHP starts up. This file contains various settings that control the behavior of PHP. The location of the php.ini file...
Just-in-time (JIT) compilation is a process that takes compilation of the code at run time. JIT compilation allows improving performance of interpreted programming languages.
Since PHP 8.0, we can use...
PHP allows specifying doc comments on declarations in code, which can be retrieved using the Reflection API. However, doc comments are just strings that provide unstructured metadata information. There are...
PHP has date and time format specifier P that returns the time zone offset such as +02:00, -05:00, etc. An offset of +00:00 for UTC can also be represented as...
Debugging is an important part of the software developing, which usually requires working with stack traces. A stack trace is a list of the function and method calls that generated...
Properties are class member variables that store values like strings, integers, boolean, etc. We can set properties via class constructor, setter method or directly if property is public.
When we...
The SplObjectStorage class allows storing additional data about objects. Objects are stored as keys and associated data as values. In other words, this class allows creating a map from objects...
Array elements and string offsets can be accessed using square bracket [] syntax. There is also curly brace {} syntax, which is rarely used in practice. Since PHP 7.4, curly...
Autoloading is a process to automatically load classes and interfaces without using include, include_once, require, or require_once statements at the beginning of each PHP file. The __autoload is a function...
PHP has disable_functions directive that allows to specify functions which should be disabled. This commonly used to disable unsafe functions for security reasons.
The disable_functions directive can be set in...