Re: PHP5 and Multi Inheritance?

From: Date: Sun, 17 Oct 2004 13:30:36 +0000
Subject: Re: PHP5 and Multi Inheritance?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199661@lists.php.net to get a copy of this message
* M Saleh Eg <m.saleh.eg@gmail.com>: > Is direct multi inhertance supported in PHP5? I believe so -- this was one of the new features of the object model introduced in PHP5. My understanding is that you have to create interface classes that a class can then implement. Unfortunately, interface classes are abstract -- no code allowed other than declarations. > I'm on PHP4, didnt find this on the docs nor at zend's. It might be > the reason of migrating to PHP5 for me. Any Idea? anyone who tested > it? by this I dont mean the chaining method of inheriting. I mean > direct multi inheritance! I saw a number of mentions of it when PHP5 was first released, but the only reference I can dig up now is at: http://www.zend.com/php5/andi-book-excerpt.php#Heading3 and, unfortunately, when it talks about interfaces being how multiple inheritance is achieved, fails to give an example. Surely somebody has a more definitive answer, but I thought I'd give it a shot. -- Matthew Weier O'Phinney | mailto:matthew@garden.org Webmaster and IT Specialist | http://www.garden.org National Gardening Association | http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org

« previous php.general (#199661) next »