Complete PHP Filesystem Reference
The feof() function checks if the "end-of-file" (EOF) has been reached.
This function returns TRUE if an error occurs, or if EOF has been reached. Otherwise it returns FALSE.
| Parameter | Description |
|---|---|
| file | Required. Specifies the open file to check |
Tip: The feof() function is useful for looping through data of unknown length.
The output of the code above will be:
Complete PHP Filesystem Reference
Your message has been sent to W3Schools.