PHP extends Keyword

PHP Keywords : Inherit from a class

Definition and Usage

The extends keyword is used to derive a class from another class. This is called inheritance. A derived class has all of the public and protected properties of the class that it is derived from.

Related Pages

Read more about inheritance in our PHP OOP - Inheritance Tutorial.

❮ PHP Keywords