|
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>
Navigation:
[Reply to this message]
|