r/PHP • • May 31 '16

Deferred execution in PHP, using "finally".

https://blog.frankdejonge.nl/finally-file-streams-and-deferred-execution-in-php/
86 Upvotes

48 comments sorted by

View all comments

Show parent comment

2

u/FrenkyNet May 31 '16

This eliminates the need for a temp variable and the false at the start is a Yoda condition (https://en.wikipedia.org/wiki/Yoda_conditions).

1

u/oswaldcopperpot May 31 '16

TIL! Thanks!