title: Two arrays in foreach loop
body: <p>I want to generate a <code>selectbox</code> using two arrays, one containing the country codes and another containing the country names.</p>
  
  <p>This is an example:</p>
  
  <pre><code>&lt;?php
      $codes = array('tn','us','fr');
      $names = array('Tunisia','United States','France');
  
      foreach( $codes as $code and $names as $name ) {
          echo '&lt;option value="' . $code . '"&gt;' . $name . '&lt;/option&gt;';
      }
  ?&gt;
  </code></pre>
  
  <p>This method didn't work for me. Any suggestions?</p>