I have this

PHP Code:
<?php
$rows 
7;
$columns 7;
$numbers range(1,($rows*$columns));
shuffle($numbers);

for(
$row 0$row<$rows$row++){
    
$this_row = array();
    for(
$column =0$column<($columns-1); $column++){
        
$this_row[] = array_shift($numbers);
    }
    
sort($this_row);
    
$this_row[] = array_shift($numbers);
    echo 
implode($this_row' ');
    echo 
'<br />';
}
?>
it basically produces randomly, 7 lines of numbers, each unique between 7 lines in order, then the last number is not in order although it is counted in the 49

I need to take those lines and compare each individual line in another file to see if any match, but only the first 6 numbers

if they do match I would like a warning to refresh the page in order to re-randomize the numbers

I have been told it can be done by creating an array of numbers from my file. Once I have that, I can compare other sequences to see if they match using in_array()

although I have no clue how to do any of that lol.. thanks