Created
November 4, 2021 11:36
-
-
Save pc-magas/c74bc000854375a4f1df00cf9c41dacc to your computer and use it in GitHub Desktop.
Finaly Example
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
FinallyPHP Fatal error: Uncaught Exception: dsadsadas in /var/www/html/api/test.php:4 | |
Stack trace: | |
#0 {main} | |
thrown in /var/www/html/api/test.php on line 4 | |
Fatal error: Uncaught Exception: dsadsadas in /var/www/html/api/test.php on line 4 | |
Exception: dsadsadas in /var/www/html/api/test.php on line 4 | |
Call Stack: | |
0.0001 387416 1. {main}() /var/www/html/api/test.php:0 | |
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 | |
try { | |
throw new Exception('dsadsadas'); | |
} catch(Exception $e){ | |
throw $e; | |
} finally { | |
echo "Finally"; | |
} | |
echo "After Try Catch"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment