title: How to implode foreach
body: <p><strong>How to implode <code>foreach()</code> with comma?</strong></p>
  
  <pre><code>foreach($names as $name) {
      //do something
      echo '&lt;a href="' . $url . '" title="' . $title . '"&gt;' . $name .'&lt;/a&gt;';
  }
  </code></pre>
  
  <p>Want to add comma after each link, except the last one.</p>