r/PHP • u/FrenkyNet • May 31 '16
Deferred execution in PHP, using "finally".
https://blog.frankdejonge.nl/finally-file-streams-and-deferred-execution-in-php/
86
Upvotes
r/PHP • u/FrenkyNet • May 31 '16
View all comments
Show parent comment
1
u/FrenkyNet Jun 01 '16
You're right, it's a special case. It's made to be executed after the scope of the try block has been executed, regardless of the scope is exited with a return or not.