Problem Statement
Differentiate between fatal errors and exceptions in PHP.
Explanation
Fatal errors stop script execution immediately, like calling undefined functions. Exceptions, however, can be caught and handled with try-catch blocks.
Example:
Fatal: echo undefinedFunction();
Exception: throw new Exception('Handled safely');
