elibraryportal Logo

Error Handling in PHP

Error Handling is used to handle runtime errors are called exceptions.

Error Handling is to maintain the normal execution of the application.

die() function

In PHP die() function is used to display any message and exit out of current script at the same time. if error condition is detected, then die() function can be used to exit the code execution.

Next Topic