I have an array named &data. I want to create a new array from $data,from x to y position.I tried to make it with for but I don't know how.Pls help.Tnx
while($info1=mysql_fetch_assoc($x))
{
$data[]= $info1['umiditate'];
}
for($i=3 ;$i<=5 ;$i++)
{
$data2=$data[$i];
}