Reply to Re: on (missing class method) call class method X

Your name:

Reply:


Posted by ZeldorBlat on 11/02/06 21:24

f3l wrote:
> I want to use non existing methods of a class:
>
> class x{
> function y(){
>
> }
> //more stuff
> }
>
>
> and do this:
>
> $x1=new x();
>
> $x1->doesnt_exist();
>
> but instead of a fatal error, I want to run y(), I would like a way to
> redirect all these errors, to y(), and have y() act depending on the
> method name, etc.
>
> is that possible?

Sure. Check this out:
<http://www.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.methods>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация