title: Foreach two array in one time
body: <p>I want to generate a selectbox 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>
  
  <p>Thanks</p>