Reading text file and comparing line with the exact same line returns false

前端 未结 2 755
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-12 00:20

My current code:

$file = fopen(\"countries.txt\",\"r\");
$array = array();

while(!feof($file)) {
    $array[] = fgets($file);
}

fclose($file);
2条回答
提交回复
热议问题