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

20, December 2019
Untill PHP 7.4, PHP has mostly invariant parameter types and invariant return types. With PHP 7.4, we now can declare ...

20, December 2019
In PHP 7.0, we got new null coalescing operator (??) which is a syntactic sugar of using isset() for check ...

18, December 2019
Full Disclosure: I don't like Arrow Functions (yet). But there are many things I don't like in PHP but still ...