title: PHP Separate comma list with links
body: <p>I have a MySQL field called "tags" an example result. The single field has a list of text with comma separated values.</p>
  
  <p>A real example:</p>
  
  <p><code>red, pants, shoes, heels, lookbook</code></p>
  
  <p>I want to somehow use find and replace or implode feature to print out this row as separate links.</p>
  
  <p>My guess so far:</p>
  
  <pre><code>&lt;?php
  $tag=$row["tags"];
  whilst (!$tag=="") { 
  echo '&lt;a href="/tags/$tag"&gt;$tag&lt;/a&gt;, "';
  }
  ?&gt;
  </code></pre>