3.14. Inheritance of Interfaces

Interfaces may inherit from other interfaces. The syntax is similar to that of classes, but allows multiple inheritance:

interface I1 extends I2, I3, ... {
    ...
}

Similar to when classes implement interfaces, an interface can only extend other interfaces if they don't clash with each other (which means that you receive an error if I2 defines methods or constants already defined by I1).

Get PHP 5 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.