Concept Flow - Multiple catch blocks
Try block starts
Code runs
Exception thrown?
No→Try block ends normally
Yes
Check first catch block type
Handle
No matching catch
→Uncaught exception
End try-catch
The try block runs code that might throw exceptions. If an exception occurs, PHP checks each catch block in order to find one matching the exception type to handle it.