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 framework? How it works? What is advantage?

727


What does $this do in php?

733


For image work which library is used in php?

743


What is $globals php?

760


How a constant is defined in a php script?

766


What does csrf token mismatch mean?

916


Explain $_FILES Superglobal Array?

803


Why shouldn't I use mysql_* functions in php?

798


What is php used for?

725


What is encapsulation in php?

742


Explain how to execute a php script using command line.

797


Can we set session value in javascript?

749


Which function parses an English textual date or time into Unix timestamp in PHP.

794


How long will it take to learn php?

711


Is php an array?

705