Error and Exception Handling

PHP try-catch

September 13, 2013
PHP try-catch is implemented with try and catch blocks, as usual. And, try block contains code with the feature of PHP exception handling by throwing exceptions occurred while executing PHP scripts. Such exceptions are caught with PHP catch block. For each try block in a PHP program, there should be minimum one catch block. We […]
This tutorial was added to PHP.

PHP Predefined Error Constants

June 23, 2013
Few days before, we have seen about PHP errors which are classified by the time of occurrence, recovery possibilities and etc. We can decide and control, which of these errors should be displayed at the time of its occurrence, by using predefined constants available in PHP represented as the error code or error constants. Let […]
This tutorial was added to PHP.

PHP Errors

June 17, 2013
There are various possible error occurrences may happen in PHP. These errors are categorized based on the time of occurrences and based on whether it is recoverable or not. And then, this classification is made with respect to how it is triggered to send an error message to the browser. It might be triggered automatically […]
This tutorial was added to PHP.

↑ Back to Top