20, November 2021
PHP 7.4 pointed out some issues with Serializable interface and introduced a new mechanism to customize object serialization. And PHP ...

03, November 2021
If we want to customize php object serialization, currently we have only two option: __sleep()/__wakeup() magic methodSerializable interfaceBut, both of ...

24, October 2021
Compared to PDO, mysqli is bit more verbose in some place. Binding parameters for prepared statement is one of them. ...

24, October 2021
Besides PDO, many of us still use mysqli to interact with MySQL database from PHP. Compared to PDO, mysqli lacks ...

16, October 2021
PHP has a set of reflection APIs that can to used to introspect classes, interfaces, functions, methods and extensions. Among ...

25, September 2021
Before PHP 8.1, we were allowed to override parent class constants on child class. It can create some confusion since ...

16, September 2021
new expression is used to create an instance of a class. But it was not allowed to be used as ...

12, September 2021
From PHP 7.4, we have array spread/unpack operator that works with arrays with integer keys. At that time, argument unpacking ...

21, August 2021
Type system before PHP 7.0 era was...ummm...not so good. If you ever worked in a project that was built in ...

07, August 2021
Exceptions are great way to signal any disruptions of the normal flow of our application. It can represent a error, ...