title: using 2 loops in PHP foreach(...)
body: <p>I have this PHP foreach loop:</p>
  
  <pre><code>foreach($emails_list as $email)
  </code></pre>
  
  <p>but i want to do something like</p>
  
  <pre><code>foreach($emails_list as $email and $forename_list as $forename)
  </code></pre>
  
  <p>my code above the foreach loop is:</p>
  
  <pre><code>$sql2="SELECT * from contacts where company_sequence = '".$customersequence."' and contactstatus = '' ";
              $rs2=mysql_query($sql2,$conn) or die(mysql_error());
              while($result2=mysql_fetch_array($rs2))
              {
                  $emails_list[] = $result2["email"];
              }
  </code></pre>
  
  <p>si i want to be able to include <code>$result["forename"];</code> within the loop too</p>
  
  <p>will the above work to make 2 loops?</p>