Remove commas after my values
<p>I have this output:</p>

<pre><code>Assembled Computer Repair &amp; Services,CCTV Cameras,
</code></pre>

<p>Here is my code:</p>

<pre><code>&lt;?php


$userdatas=$curauth-&gt;category;
$cat=explode(",",$userdatas);


foreach($cat as $cats) {
if ($cats) {

$terms   = get_term( $cats, 'shopcat' );

echo $terms-&gt;name.",";

}
</code></pre>
