What is exception in php?
Answers were Sorted based on User's Feedback
Answer / rishi (dipu lari)
PHP 5 has an exception model similar to that of other
programming languages. An exception can be thrown, and
caught ("catched") within PHP. Code may be surrounded in a
try block, to facilitate the catching of potential
exceptions. Each try must have at least one corresponding
catch block. Multiple catch blocks can be used to catch
different classes of exeptions. Normal execution (when no
exception is thrown within the try block, or when a catch
matching the thrown exception's class is not present) will
continue after that last catch block defined in sequence.
Exceptions can be thrown (or re-thrown) within a catch block.
Is This Answer Correct ? | 13 Yes | 2 No |
Answer / 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 |
Which is better get or post method?
what is the url rewriting?how to rewrite the url? give any example
How can I know that a variable is a number or not using a JavaScript?
Is php front end?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What is cookie?
What is the meaning of php?
Tell me what are the functions to be used to get the image's properties (size, width and height)?
How to make a file encrypt and decrypt?
How do I install php?
How many columns can be added in a table in mysql?
How can I make a script that can be bilanguage (supports English, German)?