Has PHP any ability to catch all types of exceptions in one catch block? Is there any way to do this:
try
{
throw new Exception; OR throw new MyException;
}
catch(???)
{
// Catch both exception types
}
Has PHP any ability to catch all types of exceptions in one catch block? Is there any way to do this:
try
{
throw new Exception; OR throw new MyException;
}
catch(???)
{
// Catch both exception types
}