If they're numbers, then of course it should be if ($array2[2] == $array1[2] ). If they're strings then you're doing it right.
andy.
In reply to Re: comparing elements of two arrays
by andye
in thread comparing elements of two arrays
by luke123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |