title: PHP foreach loop - need different value from text shown
body: <p>I have a simple <code>foreach</code> loop as follows:</p>
  
  <pre><code>foreach ($d_38 as $value) {
      echo "
          &lt;option value='".$value."'";
              if ($results["q".$i]==$value) echo 'selected="selected"';     
      echo"&gt;".$value."&lt;/option&gt;
  ";
  }
  </code></pre>
  
  <p>I currently have the the information stored in an array called <code>$d_38</code> this information is placed into the <code>options</code> of the drop down during the <code>foreach</code> loop.</p>
  
  <p>That all works fine.  However, I have a different language stored in <code>$d_38_t</code> that I want to show when the text of the option is shown, in the code above this is the <strong>third</strong> <code>$value</code> variable.  So basically, the user sees the options in one language but the data is always stored in <code>English</code> in this case.</p>
  
  <p>I've no idea how to put those two arrays together so I can use them in the <code>foreach</code> loop - can anyone offer any guidance please?</p>