📅  最后修改于: 2022-03-11 14:54:49.993000             🧑  作者: Mango
$handle = fopen("inputfile.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
// process the line read.
}
fclose($handle);
} else {
// error opening the file.
}