Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
It enables the for-each statement to iterate through the elements, executing the code of the for-each stanza the specified number of times, just as if it were a for loop...A variable is named following the for statement (in the previous examples, $i was used)