I have the following code:
for($i=0;$i<6;$i++)
{
$var=foo[$i];
while(list($key,$val)=each(array))
{
if($val=$var) echo $key;
}
}
This works the for $i=0, but not for additional loops through.
Is this something to do with the list, each construct?
Thanks
B