The answer to how to handle exception in PHP is listed here. Earlier versions of PHP version did not have a method to handle “No Exception Handle”. PHP 5.0 and above today supports this function by using catch blocks for errors and exception handling. Some Basics about Exception: