The feof() function used to tests for end of file on a file pointer.
Syntax
feof(file)
Example
$file = fopen("/content/people.txt","r");
while(! feof($file))
{
echo fgets($file);
}
fclose($file);
Copyright ©2022 coderraj.com. All Rights Reserved.