0
Why we are use to Multipal Inheritance in php?
2 Answers
+ 1
Your question is not clear. Are you talking about how to inherit from multiple classes? Well. It is not possible. In PHP 7, you can use traits to achieve this functionality.
trait Trait1 {
//methods go here
}
trait Trait2 {
//methods go here
}
class MyClass {
use Trait1;
use Trait2;
//class functionality goes here
}