PHP feof May 11, 2012 Pramod T P It checks for end-of-file on a file pointer Example <?php $fp = fopen(‘test.txt’, ‘r’); while (!feof($fp)) { } fclose($fp); ?>