To handle exceptions in PHP, you should wrap the risky code within a ________ block.
- try
- catch
- throw
- finally
In PHP, you should wrap the risky code within a 'try' block. The 'try' block is used to enclose the code that may throw an exception.
Loading...
Related Quiz
- What PHP superglobal array holds the session variables?
- The ceil() function in PHP rounds a number up to the nearest ______.
- What are some common practices in PHP when using constructors in classes?
- The $GLOBALS superglobal in PHP is an associative array.
- Which of the following headers can help in mitigating CSRF attacks?