PHP Foreach Loop

The foreach Loop

The foreach statement is used to iterate over all elements of an array. It executes same piece of code for every element of an array