Skip to main content
PHP

PHP: Try/Catch

By September 2, 2021No Comments

Does the try-catch block continue execution after the catch?

1
2
3
4
5
6
7
try {
    throw new Exception (1);
} catch (Exception $exception) {
    echo "gotcha!";
}

echo "what about me?";

The answer is Yes, it does.