Splitting a comma delimited string in chunks of 40
<p>So I have a string which looks like this:</p>

<p>123,532,0302,1234,etc etc (and it goes on and on, sometimes over 500). However, I want to split the comma dilimted list into arrays of 40, nothing more. Similar to <a href="http://nl.php.net/manual/function.array-chunk.php" rel="nofollow">array_chunk</a> in PHP (but with arrays).</p>

<p>What is the best way to achieve this?</p>
