PHP Chunk_Split Function
<p>I was making a short little program to split a long integer into smaller bits. At the moment, what it does is simply put one digit of the int orderly into an index of $arr.</p>

<pre><code>$grip = 10001; $fade = '';
for ($i = 1; $i &lt;= trim($grip); $i++) {
   $par = rand(0, 9); $fade .= "$par"; }
$arr = chunk_split($fade, 451, "\r\n");
echo $arr[1]; sleep(10);
</code></pre>

<p>I'm really hoping chunk_split does what I think it does and splits a string/int by a certain length.... Any help is thankfully accepted. :D</p>
