In PHP, is it possible to have multiple inheritance (by the nature of the PHP, not writting modification code) ?
example : class a { public function foo(); }
class b { public function bar(); }
class c extends a, b { public function baz(); }
In PHP, is it possible to have multiple inheritance (by the nature of the PHP, not writting modification code) ?
example : class a { public function foo(); }
class b { public function bar(); }
class c extends a, b { public function baz(); }
No. There's no real multiple inheritance in PHP and thats a good thing. See the other answers for alternatives.