Skip to content

Instantly share code, notes, and snippets.

@MarioBlazek
Created December 9, 2019 12:39
Show Gist options
  • Save MarioBlazek/e259887091e46b47ac8f175d0fd4b476 to your computer and use it in GitHub Desktop.
Save MarioBlazek/e259887091e46b47ac8f175d0fd4b476 to your computer and use it in GitHub Desktop.
<?php
try {
try {
echo 'a-';
throw new exception();
echo 'b-';
} catch (Exception $e) {
echo 'caught-';
throw $e;
} finally {
echo 'finished-';
}
} catch (Exception $e) {
echo 'end-';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment