15, August 2020
In today's programming world, usage of null is heavily discouraged. Reckless use of null can lead to unexpected behavior in ...

08, August 2020
From PHP 8.0, we can use ::class on object instance variables to get its fully qualified class name. Previously we ...

08, August 2020
PHP already has gettype() for getting type of a php variable. But It is kinda outdated. It returns type name ...

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