Place Comma Between Two Concatenated Arrays
<p>I have two arrays of user id's which are gathered from two MYSQL queries and then treated as:</p>

<pre><code>$var1 = implode(",",$result1);
$var2 = implode(",",$result2);
</code></pre>

<p>This gives me something like:</p>

<pre><code>$var1 = 132, 567, 345 
$var2 = 12, 934, 302 
</code></pre>

<p>I then concatenate these two variables with:</p>

<pre><code>$varfinal = $var1 . $var2;
</code></pre>

<p>The trouble I'm having is there is no comma between the end of $var1 and the beginning of $var2 so $varfinal ends up with:</p>

<pre><code>132, 567, 34512, 934 302
</code></pre>

<p>When what I need it to be is:</p>

<pre><code>132, 567, 345, 12, 934 302
</code></pre>

<p>Can someone show me how I can add a comma to separate the two?</p>

<p>Thanks</p>
