title: How to print two array at the same time in a foreach loop?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8395889/iterate-through-two-associative-arrays-at-the-same-time-in-php">Iterate through two associative arrays at the same time in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>I have two arrays <code>$name[]</code> and <code>$type[]</code>. I want to print those arraya through foreach loop like this,</p>
  
  <pre><code>&lt;?php
  foreach($name as $v &amp;&amp; $type as $t)
  {
  echo $v;
  echo $t;
  }
  ?&gt;
  </code></pre>
  
  <p>I know this is wrong way then tell me correct way to do this.</p>