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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.