PHP - Error and Exception Handling
Which of the following is the correct way to throw an exception in PHP?
throw is used with new Exception() to create and throw an exception.throw new Exception('message'); which creates and throws the exception object.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions