foreach example

this example uses foreach to loop through and print the values in an array

<html>
<body>
<?php
//declare an array
$list = array("a","b","c","d","e");
//use foreach to loop through the $list array
foreach($list as $value)
{
print "$value\n";
}
?>

</body>
</html>