I have 3 classes (3 files):
a.class.php
b.class.php
c.class.php
I want to extend class a and b in the class c (file 3):
How I could do that? I want to use both class functions of a + b in my new class C
I have 3 classes (3 files):
a.class.php
b.class.php
c.class.php
I want to extend class a and b in the class c (file 3):
How I could do that? I want to use both class functions of a + b in my new class C
There is no multiple inheritance in PHP. So you can't do that.
Try using composition and re-arranging your class structure.