PHP Exception Handling.

PHP has an exception model similar to that of other programming languages. An exception can be thrown and catched within PHP.

Code :