Constructor Property Promotion in PHP 8.0

Constructor Property Promotion in PHP 8.0

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...
Using WeakMap in PHP 8.0

Using WeakMap in PHP 8.0

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...
Function __autoload Has Been Removed in PHP 8.0

Function __autoload Has Been Removed in PHP 8.0

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...