well, firstly, if you have of everyone 3 items, easiest is to create 3 arrays.
so you would have:
$a=1,2,3,4,5,6,7,8
$b=1,2,3,4,5,6,7,8
$c=1,2,3,4,5,6,7,8

to access arrays one can use many ways, but easiest is to use the array index.
in this case:
$a[0] means 1 entry which is 1
and the other arrays have the same.
to get all the elements of the array one could do:
$a[0] $a[1] $a[2] and so on...
but if you know how many elements array contains, in this case 8 we can make a loop of it:
for $counter=0 to 7 ; arrays start indexing from 0 not 1.
? "$counter has " $a[$counter] " in it"
next
this loop gets every element of the array and outputs it to new line with same fancy bancy...

so, if they are all three alike you can query them together:
for $counter=0 to 7
? "array a $counter has " $a[$counter] " in it"
? "array b $counter has " $b[$counter] " in it"
? "array c $counter has " $c[$counter] " in it"
next

which outputs all arrays to separate lines.

and if something has left open, just don't hesitate to ask.

cheers,
_________________________
!

download KiXnet