Array Question. Any ideas on how to solve my problem?
<p>I have around 1000 array elements. The elements consist of 1 user ID per element.</p>

<p>What I would like to do is shorten this array so each element contains 10 user ID's per element and each user ID per element is delimited by a comma.</p>

<p>Current array:</p>

<pre><code>324234
2342234
0983242
....
</code></pre>

<p>New Array:</p>

<pre><code>324234,2342342,234234234,234234,5436436,457456,456456,234234,234234,546456436
34234,23423426,54645654,34532423,23423432,4634634,2342342,234234,264353,345345
....
</code></pre>

<p>You may be asking WHY DO THAT?!</p>

<p>Well, I am sending the ID's to a post request. The request accepts either 1 ID or more. To shorten the number of requests I would like to send along 10 ID's per request.</p>

<p>Any ideas on how to group the old array into the new shorter array?</p>
