Foreach Loop - Syntax

Syntax

Syntax varies among languages. Most use the simple word for, roughly as follows:

for each item in collection: do something to item

Read more about this topic:  Foreach Loop