Terminating a foreach Iteration

A foreach loop can be terminated in the following ways.