我从文件中下载数据并将其保存到表中,然后我尝试搜索数组并在表中写入“找到匹配”,如果不写入“未找到匹配”
我的文件凭证.txt
ub65rf
98huf4
YbyR42
我的代码 PHP
$array = [];
$array = file('voucher.txt');
$find = '98huf4';
if (in_array($find, $array))
{
echo "Match found";
}
else
{
echo "Match not found";
}
慕哥9229398
梵蒂冈之花
随时随地看视频慕课网APP