title: Multiple Foreach loops for one array
body: <p>I have a foreach loops for an array called $feedsMerged.  I have this foreach loop near the top of a document and it's setting some global variables from the array. </p>
  
  <p>I'd like to recall the foreach loop, or run it again on that array and this time build elements from the variables I set above. </p>
  
  <p>Top of the document.</p>
  
  <pre><code>foreach ($feedsMerged as $posts) {
  $post_id = $post['post_id'];
  etc etc
  }
  </code></pre>
  
  <p>Then bottom of page</p>
  
  <pre><code>foreach ($feedsMerged as $posts) {
  echo '&lt;div class="' . $post_id . '"&gt;stuff&lt;/div&gt;';
  }
  </code></pre>
  
  <p>Is this possible to do?  The reason for using two foreach loops on the same array is I'd like to keep this all organized and I'll have content in between each foreach that can't be in this foreach</p>