What are the potential pitfalls of using multiple inheritance in PHP?

Using multiple inheritance in PHP can lead to issues such as ambiguity in method resolution, as PHP does not support multiple inheritance directly. To avoid this problem, it is recommended to use interfaces instead of classes for multiple inheritance. Interfaces allow a class to inherit from multiple interfaces, providing a way to define a contract for classes to implement.

interface Interface1 {
    public function method1();
}

interface Interface2 {
    public function method2();
}

class MyClass implements Interface1, Interface2 {
    public function method1() {
        // implementation
    }

    public function method2() {
        // implementation
    }
}