The foreach statement lets you iterate for each element in a list or array:
foreach variable (list) { # ... }