I'm not sure, but I think the only way you are going to get MI in PHP,
is if you implement if yourself. By this I mean, implementing the
correct __get(), __set(), and __call() functions.



On Sun, 17 Oct 2004 18:32:34 +0400, M Saleh EG <[EMAIL PROTECTED]> wrote:
> Thanx Mathew
> I guess I found it, it's disapointing though.
> 
> Here was the answer: http://www.zend.com/php5/andi-book-excerpt.php#Heading3
> 
> <Copied from the link above>
> 4. Interfaces
> Gives the ability for a class to fulfill more than one is-a
> relationships. A class can inherit from one class only but may
> implement as many interfaces as it wants.
> <Copied from the link above>
> 
> On 17 Oct 2004 13:30:36 -0000, Matthew Weier O'Phinney
> 
> 
> <[EMAIL PROTECTED]> wrote:
> > * M Saleh Eg <[EMAIL PROTECTED]>:
> > > 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:[EMAIL PROTECTED]
> > Webmaster and IT Specialist       | http://www.garden.org
> > National Gardening Association    | http://www.kidsgardening.com
> > 802-863-5251 x156                 | http://nationalgardenmonth.org
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> --
> M.Saleh.E.G
> 97150-4779817
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to