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?
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?
Comment