What is exception in php?

Answer Posted / guest

Exception 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.

This is what normally happens when an exception is
triggered:

•The current code state is saved
•The code execution will switch to a predefined (custom)
exception handler function
•Depending on the situation, the handler may then resume
the execution from the saved code state, terminate the
script execution or continue the script from a different
location in the code

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between echo and print_r in php?

501


What is button in html?

545


What is the difference between abstract class and interface in php?

527


What is php and why it is used?

555


Write a select query that will be displayed the duplicated site name and how many times it is duplicated?

575






What is symfony php?

528


How to merge values of two arrays into a single array?

489


what does this symbol mean in php?

614


How to increase the maximum execution time of a script in php?

534


How to block direct directory access in PHP?

563


What is the main difference between require() and require_once()?

522


How can you compare objects in php?

511


Can I run php without xampp?

505


How to include a file code in different files in php?

512


Do you know what does mvc stand for and what does each component do?

509