PHP - Delete last 2 characters in a loop
<p>I have the following which produces results for me.</p>

<pre><code>foreach($authArray as $key=&gt;$value){
    $query = mysql_query("SELECT * FROM table WHERE id='$value' LIMIT 1");
    $author = mysql_fetch_assoc($query);
    echo $author['fullname'] .', ';
}
</code></pre>

<p>It prints it out perfect, except on the last run it still adds the comma and space, is there a way i can strip this from the last result, so its:</p>

<pre><code>name, name, name, name
</code></pre>

<p>Instead of the following</p>

<pre><code>name, name, name, name,
</code></pre>

<p>Cheers</p>
