OOPS Concept: Introducing Classes in php   You all know that Classes are the most important part of OOP.   A class is simply a template or blueprint that contains the various attributes and functions of an object of the class. Class is mainly composed of three things :  name, attributes, and operations.We can also…

PHP: Access control modifiers   One of the fundamental principles in OOP(Object Oriented Programming) is ‘encapsulation‘. The idea is that you create cleaner and better code, if you restrict access to the data structures (properties) and methods in your objects.   The access modifier is the most important feature of the OOP language and it…