ForEach
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>foreach</title>
</head>
<body><div align="center">
<h3>ForEach</h3></div>
<p>I'm still having cravings for food, and some people want share cough cough Rigo!</p>
<?php
$food[0]="cupcakes";
$food[1]="Pineapple Pizza";
$food[2]="Fries with ranch";
$food[3]="Cheese Sticks";
$food[4]="Brownies";
$food[5]="Chocolate Chip cookies";
$food[6]="Cheese Cake";
$food[7]="Limon with tamatoes";
$food[8]="Churros";
foreach ($food as $value)
{
echo "The craving I'm having right now is: ". $value. "<br>";
}
?>
</body>
</html>