Attention PHP guru's, I have a question about PHP and OOP. My problem is that I want multiple inheritance functionality in PHP but it does not support this (see http://www.zend.com/manual/keyword.extends.php). My question is can PHP classes be extended multiple times to simulate multiple inheritance? Is this supported? Is this safe?
It do seems to work. <? class A { var $A = "A"; } class B extends A { var $B = "B"; } class C extends B { var $C = "C"; } $test = new C(); var_dump($test); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php