Problem Statement
How do you create a custom exception in PHP?
Explanation
Custom exceptions are created by extending PHP’s built-in Exception class and overriding its methods if needed.
Code Solution
SolutionRead Only
class MyException extends Exception { }