views:

54

answers:

2

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(); }

+1  A: 

Here's a good answer

Hooray Im Helping
A: 

No. There's no real multiple inheritance in PHP and thats a good thing. See the other answers for alternatives.

Techpriester