Answer Posted / 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 |
Post New Answer View All Answers
Which methods should be used for sending an email using the variables $to, $subject, and $body?
Is php session id unique?
What is the use of trim function in php?
Explain me what are the 3 scope levels available in php and how would you define them?
What are some of the advanced features of php?
Is php dying 2018?
How do I update php?
How long is a php session valid?
How many escape sequences are recognized in double-quoted strings in php?
Which function would you use to merge two arrays in php?
How to check an element is exists in array or not in php?
How to read a file in php?
Is it easy to learn php?
Which of the data type is compound datatype supported by PHP?
What are escaping characters? Explain with an example?