Which of the following is NOT a valid exception handling method in PHP?
- try-catch
- set_exception_handler()
- throw
- onError()
onError() is not a valid exception handling method in PHP. The correct methods are try-catch, and set_exception_handler()
Loading...
Related Quiz
- Which of the following functions in PHP can be used to manipulate strings?
- The same function name can be used for multiple functions in the same PHP script.
- Which of the following are true about sorting arrays in PHP?
- How to initiate a session in PHP?
- The if statement in PHP can only test one condition.