<!DOCTYPE html>
<html>
<head>
	<title>Use PHP to bind data to a Select Box</title>
</head>
<body>
<p>
	Look at the PHP code in this page to see your instructions.
	When you load the page in the browser, you should see a select box that look like the image on the right.
	<img align="right" src="04_screen-shot.png">
</p>
<select>
<?php

$fruits = [
	["name" => "Apples", "color" => "Red"],
	["name" => "Bananas", "color" => "Yellow"],
	["name" => "Grapes", "color" => "Green"]
];

// loop through the fruits array and create an HTML OPTION element for each one.
// Display the value of the 'fruit' key in each OPTION.
// (inside the loop, echo out an OPTION element that contains the name of each fruit)
foreach($fruits as $f){
	//echo("<option value="."{$f['name']}>"."{$f['name']}"."</option>");
	echo("<option>" . $f['name'] . "</option>");
}

?>
</select>

</body>
</html>