So $textarray[1, 2, 3, 4, ...] are the words, $textarray[2][1, 2, 3, ... 9] are the grammar codes for the third word. If the first code matches nn|nns|...npl then for each of the 9 grammar codes, if the first code matches at|ati, print the first 6 grammar codes. That's what it looks like you are trying to do. Perhaps you can explain what you want to do with one word, and then figure out how to do it with the whole array.
In reply to Re: looping in 2d array
by GotToBTru
in thread looping in 2d array
by Linguist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |