php arrays creating dynamically giving incorrect values
<p>I want to create a array with values:
3,2,1.... and I want to use array_push and a forloop.
I have written the following code is not working..</p>

<p>============</p>

<pre><code>&lt;?PHP
$temp0=3;
$temp1=2;
$temp2=1;
$temp3=1;
$temp4=1;
$temp5=1;

$arraytemp=array();

for($i=0;$i&lt;4;$i++)
{
$r="temp";
$dd=$r.$i;
array_push($arraytemp,$dd);
}
echo $arraytemp[3];
?&gt;
</code></pre>

<p>can you please let me know what I am missing</p>
