Posts Tagged ‘try and catch blocks’
multiple catch block in php
Saturday, November 1, 2008 9:56 No CommentsSome time there is a need to catch more than one exception..In such a situation, we can associate more than one catch statement with a try, When an exception is thrown, the exception handlers are searched in order for an appropriate match. The first handler that yields a match is executed. After executing the handler, [...]
try and catch block in php
Thursday, October 30, 2008 8:47 1 CommentException handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception. Try block is used to try for the code to execute if any error like file unable to open etc.. It will stop the execution and it will throw [...]
