changing a php variable name throughout for loop
<p>I have an array that I want to rename so that the values are stored depending on what number the for loop is on.  I tried something like this but its giving me an error.</p>

<pre><code>for ($i =0;$i&lt;4;$i++){

$array.$i = array();

push stuff into array;




}
</code></pre>

<p>So at the next iteration the array is called array1, then array2 and so forth.  What is the best way to do this.</p>
