The foreach() function allows you to loop though an array to process the values as variables. Share on TwitterTweet Share on Pinterest Share Share on LinkedIn Share Share on Digg Share