I'm quite new to PHP and I've been reading about exceptions recently. I came across terms like "checked exceptions" and "unchecked exceptions" and I'm a bit confused about their differences in PHP.
From what I understand, exceptions are used to handle errors and exceptional situations in PHP. But I'm not clear on when to use checked exceptions versus unchecked exceptions. Can anyone shed some light on this topic?
I'd really appreciate if someone could explain the difference between checked and unchecked exceptions in PHP. Additionally, it would be great if you could provide some examples or scenarios where each type of exception is commonly used.