sorry for not explain it very well
I have this code for example:
<?php
$data = array(110, 112, 114, 171);
$data1 = array(10, 11, 14, 17);
$data2 = array('google', 'yahoo', 'microsoft', 'sun');
shuffle ($data);
shuffle ($data1);
foreach ($data as $key)
{
foreach ($data1 as $key1)
{
}
foreach ($data2 as $key2)
{
}
//$value2 = $array2[$key];
echo $key." ";
echo $key1." ";
echo $key2."<p>";
}
?>
and the result is this:
110 11 sun
171 11 sun
114 11 sun
112 11 sun
my first question is that the $data1 and 2 doesn't change..is any way of fixing this..and is there any easier way for foreaching data1 and 2?
thanks