Using die () Function for Error Handling

Using die () function you can display error message that user can easily understand and it will stops the execution of script.
Consider Following Example:

Above script first checks weather variables a and b are assigned any value or not using isset () function. If it is not assigned any value then we use die () function that display user defined message and stops the execution of script as shown below:

Download Projects

Download Programs