Why does php doesn't go inside catch block without throwing an exception

     

I am new to php i am from java background i am wondering why php doesn't goes directly when exception occured in try block without throwing that exception manually.  e.g.


//trigger exception in a "try" block  try {   checkNum(2);   //If the exception is thrown