The following example demonstrates a loop that will output the values of the given array ($colors): ...
www.w3schools.com