title: Multiple Objects in Foreach Loop
body: <p>I have the following two foreach loops that are working for me:</p>
  
  <pre><code>foreach ( $pa_speciesreactivityabbrs as $pa_speciesreactivityabbr ) {
  echo '&lt;span&gt;' .$pa_speciesreactivityabbr-&gt;name. '&lt;/span&gt;';
  }
  
  foreach ( $pa_speciesreactivitys as $pa_speciesreactivity ) {
  echo '&lt;span&gt;' .$pa_speciesreactivity-&gt;name. '&lt;/span&gt;';
  }
  </code></pre>
  
  <p>However I need to combine the $pa_speciesreactivityabbrs and $pa_speciesreactivitys in the same loop to output $pa_speciesreactivityabbr->name and $pa_speciesreactivity->name together.</p>
  
  <p>I have gone through a number SO answers from other posts, but can't seem to apply them to my situation.</p>