Problem Statement
Which keyword is used to throw an exception in PHP?
Explanation
The throw keyword is used to manually generate an exception in PHP. It is followed by an Exception object.
Code Solution
SolutionRead Only
throw new Exception('Invalid input');