Design Principle: Program to Interfaces, Not Implementations

Design Principle

The “Program to Interfaces, Not Implementations” principle is- Design your code to depend on interfaces, and avoid the dependency on concrete classes. The process is to define interfaces that specify required behavior. Classes then implement the interface and allow the system to extend and modify the implementation, without changing the dependent code.

PHP: Variable

PHP

Variables are identifiers for some data storage in the programming. We can save some data in memory using a variable, and the variable works as a named identifier of that data storage memory address. PHP variable naming starts with a dollar sign($) and then there is an identifier(variable name). The identifier/name of the variable should … Read more