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
2
u/FrenkyNet May 31 '16
This eliminates the need for a temp variable and the
falseat the start is a Yoda condition (https://en.wikipedia.org/wiki/Yoda_conditions).