Interface in php

Interfaces in php provide a way for defining contracts to which a class adheres; the interface provides method prototypes and constants, and any class that implements the interface must provide implementations for all methods in the interface. Here’s the syntax for an interface definition: interface interfacename{[ function functionname();…]} To declare that a class implements an … Read more