Which keyword is used in PHP to handle exceptions?
- throw
- try
- catch
- finally
In PHP, the catch keyword is used to handle exceptions. It is used to catch and manage exceptions that are thrown in the try block.
Loading...
Related Quiz
- In PHP, $GLOBALS is a superglobal array that contains references to all ______ that are currently defined in the global scope of the script.
- How do you handle errors when using mail functions in PHP?
- The break statement in PHP is used to ______ the current loop and move the program control to the line immediately following the loop.
- You're writing a custom exception class in PHP to handle specific types of errors in your application. Which built-in PHP class would you extend to achieve this?
- Which of the following PHP functions checks if a file or directory exists?