April 2005
Intermediate to advanced
344 pages
11h 59m
English
You can use the foreach
statement to loop for every
array element. This is useful in cases when you need to iterate
through an array. For example, the following loop iterates through
myports[] and prints the values contained in it:
foreach i (myports)
{
display (i, "\n");
}Read now
Unlock full access