What is yield in PHP & how it is different from return?
Many times we process the data and creates an array. That array later on will be processed further. In this scenario we need to create an array which occupy the…
Many times we process the data and creates an array. That array later on will be processed further. In this scenario we need to create an array which occupy the…
We know the concept of OOPS but how come to know that these type of classes we need with these type of methods & attributes & What will be abstract…
The null safe operator (?->) in PHP is a feature introduced in PHP 8.0. It allows you to call methods or access properties on an object only if the object…
Short-circuiting in PHP refers to the behavior of logical operators (&&, ||, and their shorthand equivalents and and or) where the evaluation stops as soon as the final outcome of…
Type hinting in PHP refers to the practice of specifying the expected data types for function arguments, return values, and class properties.
There are 5 pillars of any MVC framework. 1) Router2) Validator3) Database4) Template Engine5) Container
The 4 pillars of OOP are 1) Encapsulation 2) Abstraction 3) Inheritance & Polymorphism. Here are some basic explanation of each why to use and where to use.
If you have same named function in functional programming, it’s not accepted but yes you can create same named function in different class. Now what about the class name? What…
Anonymous function means you can create a function without declaring its name and you can write a piece of code into it’s definition.
The answer is NO. Why? Because from simple application written in core PHP to latest framework like Laravel having some advantage over it. Check this how.