Created
June 17, 2014 06:49
-
-
Save c9s/c7e9969ff9448b90e6e0 to your computer and use it in GitHub Desktop.
This file contains 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 | |
function foo() { | |
try { | |
// throw new YoubikeException; | |
throw new Exception; | |
} catch (Exception $e) { | |
echo 'Caught Exception: ', get_class($e), "\n"; | |
return 1; | |
} finally { | |
echo 'Finally block'; | |
return 2; | |
} | |
return 3; | |
} | |
$ret = foo(); | |
var_dump( $ret ); // got 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment