Home > PHP > feof

feof

It checks for end-of-file on a file pointer

Example

<?php

$fp = fopen(‘test.txt’, ‘r’);

while (!feof($fp)) {

 }

fclose($fp);

?>

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: , ,
Comments are closed.

Switch to our mobile site