Which PHP loop is designed specifically to go through each element of an array?
Correct answer C. foreach
Explanation
The foreach loop iterates over each element of an array, for example foreach ($items as $item), without needing a counter or index.
Answer checked How we write and check questions
Discussion