PHP - Error and Exception Handling
Which of the following PHP code snippets correctly throws an exception with the message "Access denied"?
new Exception() and then use throw.throw new Exception("Access denied"). Options B, C, and D have syntax errors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions