How to add comma between array items PHP - Drupal
<p>I'm trying to add a comma between these array items, however if I were to use implode it was just returning Array, Array.   </p>

<pre><code>function boron_taxonomy_links($node, $vid, $type, $cat) {
  if (count($node-&gt;taxonomy)){
    $tags = array();
    foreach ($node-&gt;taxonomy as $term) {
       if ($term-&gt;vid == $vid){
          $tags[] = array('title' =&gt; $term-&gt;name . ',', 'href' =&gt; $type . '/' . $cat . '/' . $term-&gt;tid, 'attributes' =&gt; array('rel' =&gt; 'tag'));
       }
}
    if ($tags){
      return theme_links($tags, array('class'=&gt;'links inline'));
    }

  }
}
</code></pre>
