foreach looop is used to loop through arrays.for each pass value of the current array element
is assigned to value and the array pointer is moved by one o and in pass next element will be processed.

Syntax:

foreach(array as value)
{
here code to be exicute
}

EX :

//php start here

$array = array(a,b,c,d,e);

foreach($array as $value){

echo “$value”;

}