foreach is a nice new function added in php4
$myarray[myindex1]='blablablalba';
$myarray[myindex2]='blabla2';
foreach ($myarray as $key => $value) {
// cycles through each value of $myarray and
// sets $key to the index and $value to it's value
echo "Index: " . $key . ". Value: " . $value . "<BR>";
}
if you dont have foreach() on your system, you can do the same thing with a more complicated each(). look at the documentation of the foreach() command for details