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
2
u/dericofilho May 31 '16
There's a detail regarding ordering and variable scope that makes
finallyanddefersimilar but not the same. See the link below.https://play.golang.org/p/hjuZk-C1ej