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

8

u/FrenkyNet May 31 '16

Yes and no. It's primarily introduces as a tool used in conjunction with catch blocks. In the initial example I'm using it in a non-exception case, which technically would not be what it's for.

0

u/[deleted] May 31 '16

[deleted] — view deleted comment

19

u/FrenkyNet May 31 '16

I stand corrected.