PHP - Duplicate array values
<p>so i have this array;</p>

<pre><code>Array ( [0] =&gt; A [1] =&gt; B [2] =&gt; C ) 
</code></pre>

<p>what i want to do is;</p>

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

<p>repeat each value, A-A-A-B-B-B-C-C-C</p>

<p>i have tried array_merge and gives me A-B-C-A-B-C</p>

<p>thanks!</p>
