Foreach

From Progzoo
Jump to: navigation, search
The foreach loop allows us to run over a set of values in an array

or similar structure.

foreach over a list

beatles is an array,s takes each value in turn.

[Font] [Default] [Show] [Resize] [History] [Profile]