implode array strings two by two - php
<p>My array is :</p>

<pre><code>Array
(
    [0] =&gt; 1
    [1] =&gt; 4
    [2] =&gt; 2
    [3] =&gt; 5
    [4] =&gt; 3
    [5] =&gt; 6
    [6] =&gt; 4
    [7] =&gt; 7
)
</code></pre>

<p>I use this code:
implode( ",", $output );</p>

<p>but it returns this:
1,4,2,5,3,6,4,7,6</p>

<p>I want to 0 comes with 1 and 2 comes with 3 and etc with "ts" between them.
after both of them with "ts", it should come with a comma. like this :
1ts4,2ts5,3ts6,4ts7</p>

<p>summary: instead of odd commas (with the implode that I said), I want it to put "ts" (1ts4,2ts5,3ts6,4ts7)</p>