I am building a game to check lottery tickets so I am trying to build a loop that will loop a 6 lottery numbers through a list of 50 lottery lines.
I have an array with 6 non duplicated numbers. I want to loop this array through 50 arrays each with 6 numbers but in each array no number can be duplicated.
I would like to return how many times the numbers in array match any of the numbers in any of the other 50 arrays.
1 number = 20 matches
2 numbers = 10 matches
3 numbers = 1 match.
I am new enough to PHP and trying to find the easiest way to do this.
I am using this game to improve my knowledge of PHP, any help would be appreciated.