title: Echo in an array iteration overwrites previous echo (PHP)
body: <p>Currently I am doing this:</p>
  
  <pre><code>$lines = file('data/index');
      foreach ($lines as $value)
      list($title, $location) = explode("|", $value);
      echo '&lt;div id="entry"&gt;&lt;a href="'.$location.'"&gt;'.$title.'&lt;/a&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>And the contents of <code>data/index</code> is:</p>
  
  <pre><code>This is a test post|http://google.com 
  Another test post|http://google.com
  </code></pre>
  
  <p>However, it only prints out the last line of that file. Almost like each "echo" is being overwritten by a new one. I'm obviously not doing this correctly. Why isn't it working and how can I make it perform the way I intend it to?</p>