This is a simple array example using a foreach loop

0 John.
1 Adam.
2 Dave.