Looping multiple arrays simultaneously
<p>Doing a homework assignment and I'm not sure I can wrap my mind around how to go about this problem.  I have two arrays with the same amount of values:</p>

<pre><code>$monthsShort = array("Jan", "Feb", ..., "Nov", "Dec");
$monthsLong = array("January", "February", ..., "November", "December");
</code></pre>

<p>I need a loop that will traverse both of them and generate output that looks like this:</p>

<blockquote>
  <p>1 Jan January</p>
  
  <p>2 Feb February</p>
  
  <p>...</p>
  
  <p>12 Dec December</p>
</blockquote>

<p>I'm just really not sure where to begin as I can't find a similar problem in my textbook.  I did find this: <a href="http://stackoverflow.com/questions/3398618/foreach-loop-with-multiple-arrays">Foreach loop with multiple arrays</a>, but I am not sure how/why it works.  Any help is greatly appreciated.</p>
