Skip to content

Instantly share code, notes, and snippets.

@mridgway
Created August 23, 2010 20:09
Show Gist options
  • Save mridgway/546239 to your computer and use it in GitHub Desktop.
Save mridgway/546239 to your computer and use it in GitHub Desktop.
<?php
class ExceptionTest extends Exception {}
$data;
try {
if (true) {
try {
throw new ExceptionTest();
} catch (ExceptionTest $e) {
$data = true;
}
}
} catch (Exception $e) {
$data = false;
}
echo ($data) ? 'Success' : 'Fail';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment