I downloaded the data from the file and saved it to the table, then I try to search the array and write "Match found" if it is in the table, if I do not write "Match not found"
my file voucher.txt
ub65rf
98huf4
YbyR42
My code PHP
$array = [];
$array = file('voucher.txt');
$find = '98huf4';
if (in_array($find, $array))
{
echo "Match found";
}
else
{
echo "Match not found";
}