title: PHP loop, change last item?
body: <p>This might actually be a css question but I'm hoping not because I'd like this to work in IE.</p>
  
  <p>I have the following loop:</p>
  
  <pre><code>&lt;?php 
    if ($category)
  {
       foreach($category as $item)
           {
                 echo $item['name'];
                 echo ", ";
           }
  } ?&gt;
  </code></pre>
  
  <p>Which should output</p>
  
  <p>item, item, item, item,</p>
  
  <p>The only thing is...I'd like to NOT have a comma after the last item. Is there any way to do this within a loop?</p>