iterating arrays with for, foreach, and alt syntax for each