Discussion board
What is feof() function in PHP?
By Arun Desai
What is feof() function in PHP?????
Reply
Post   Reset
Teacher SiliconIndia replied to Arun Desai Wednesday, March 17, 2010
Hi Arun,
The feof() function checks if the "end-of-file" (EOF) has been reached.

The feof() function is useful for looping through data of unknown length.
Note: You cannot read from files opened in w, a, and x mode!
if (feof($file)) echo "End of file";