title: PHP: html select in form doesn't display value from array with for each
body: <p>I have this array with a list of countries.</p>
  
  <pre><code>$country_list = array(
      "Afghanistan",
      "Albania",
      "Algeria",
      "Andorra",
      "Angola"
     };
  </code></pre>
  
  <p>I show these countries with a select in my form</p>
  
  <pre><code>&lt;select name="countries"&gt;
    &lt;option value=""&gt;&lt;/option&gt;
    &lt;?php foreach($country_list as $key =&gt; $value): ?&gt;
    &lt;option value="&lt;?php $key ?&gt;"&gt;&lt;?php $value ?&gt;&lt;/option&gt;
    &lt;?php endforeach ?&gt;
  &lt;/select&gt;&lt;br&gt;
  </code></pre>
  
  <p>For some reason the value is showing up as an empty string in my select.</p>