How can I cycle through an array?
I can not use: for ($i = 0; $i < $numrows; $i++) because the array may be indexes (hope thts the right term) may not be consecutive. for example I may have:
myarray[2]=bob myarray[4]=jon myarray[7]=tom
Thanks agian
you could try a string-indexed array, i.e., declare your array as above, then
while (list ($key, $val) = each ($myarray)) { echo $whateveryouwanttodowithit; }
Hope that helps.