PHP implements Keyword

PHP Keywords : Implement an interface

Definition and Usage

The implements keyword is used to declare that a class must have the methods described in the specified interface. This is called polymorphism. Polymorphism makes it easy to use a variety of different objects in the same way.

Related Pages

The interface keyword

The else keyword

Read more about objects, classes and interfaces in our PHP OOP Tutorial.

❮ PHP Keywords