Latest Posts

What is Interface in PHP 7



What is Interface An Interface allow user to define public methods that a class must implement. Or in other words if a class “implements” a interface that class must use functions defined in “Interface”. We can have functions in interface without body similar to abstract functions. Here is the code example for Interface in PHP