Re: Multiple Inheritance

From: Date: Wed, 27 Feb 2008 17:15:10 +0000
Subject: Re: Multiple Inheritance
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-270334@lists.php.net to get a copy of this message
On Wed, Feb 27, 2008 at 12:05 PM, chetan rane <chetan.d.rane@gmail.com> wrote: > Hi All > > Dose anyone know how to implement multiple inheritance in PHP 5. > Interfaces dosent work . I have already Tried it. Like Java, PHP5 doesn't have multiple inheritance. It does have multiple interfaces, so I'm not sure what you're doing that won't work with that, but it's available. There is a way to simulate multiple inheritances with PHP5 though. Check out the runkit PECL extension: http://php.net/manual/en/ref.runkit.php And specifically in that extension, the function runkit_class_adopt(): http://www.php.net/manual/en/function.runkit-class-adopt.php -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.general (#270334) next »