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];

}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.