This article explains Creating Classes in PHP. Basically, a class is like a template or a blueprint for an object. In other words, a class describes an object. While objects are things that have certain features in terms of attributes and behavior. The class represents the attributes and behavior of objects and the objects are …
Inheritance in PHP
In this article, I will explain the Inheritance in PHP. The objects relate to each other in many ways. For instance, an object may be a special kind of another object. In other words, the object is the special case of some generalized object. For example, a Course object can have attributes like course title, …
Anonymous Functions in PHP
In this article, I will explain how to create Anonymous Functions in PHP. Anonymous functions are those functions that we create without a name. In fact, we can use anonymous functions in a number of places. For instance, suppose we need to pass a function as a parameter to another function. In such a case, …