Skip to content

Instantly share code, notes, and snippets.

@jaytaph
Last active December 12, 2015 10:39
Show Gist options
  • Save jaytaph/4760833 to your computer and use it in GitHub Desktop.
Save jaytaph/4760833 to your computer and use it in GitHub Desktop.
<?php
try {
// Some code that might trigger an error
} catch (exception $e) {
print "Exception raised: " . $e->getMessage() . "\n";
// Handle exceptions
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment