28, June 2020
Class properties are a great way to store statefull data in object. Sometimes we accept and set them via __construct(), ...

27, June 2020
PHP internals are trying to slowly replace all usage of 'resource' in PHP with appropriate Object for a long time. ...

26, June 2020
Do you use switch() often? Does long list of switches make you worried that you would introduce some bug in ...

09, May 2020
In PHP, throw is a statement. It can be used in only those places where a statement is allowed. But ...

08, May 2020
Even though PHP has many helper functions to deal with strings, They still not cover all the use-cases web development ...

02, May 2020
No matter what type of project you are in, you would need to check if a substring exists in a ...

17, January 2020
Nullable types Nullable type means, If a function accepts string type, by marking it nullable we can accept both string ...

21, December 2019
Parameter type widening PHP till version 7.2 doesn't support parameter type variance. So we can't change type definition when overriding ...

21, December 2019
is_countable() From PHP 7.2, PHP raises warning if we use count() on uncountable variables/objects. In PHP 7.3, we got a ...

20, December 2019
PHP already has spread operator (...) for argument unpacking. From now on, we can unpack/spread arrays too. How to unpack ...