array examples with for and foreach loop