Created
September 11, 2018 19:04
-
-
Save mattiz/33292851858c1ef1be0961f40cca5050 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Foo; | |
try { | |
throw new \Exception(); | |
} catch (Exception $e) { | |
echo 'Exception caught!'; | |
} catch (\Exception $e) { | |
echo 'SlashException caught!'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment