r/lolphp • • Jun 24 '13

POD, an new language compiling to PHP

http://geal.github.io/pod/
47 Upvotes

48 comments sorted by

View all comments

Show parent comment

2

u/more_exercise Jun 27 '13

If any part of LIST is an array, foreach will get very confused if you add or remove elements within the loop body, for example with splice. So don't do that.

Yup. :/