search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Programming Dictionary

Online technical manual for service programmers
Popular searches:
Dictionary homepage Server PHP php feof() function
php feof() function Detailed instructions for use

php feof() function

Chinese translation Recent Updates: 2018-04-19 10:29:20

abbr.Earth Orbital Flight Earth Orbital Flight


php feof() function syntax

Function: Detect whether the end of file (eof) has been reached.

Syntax: feof(file)

Parameters:

Parameter Description
file Required. Specifies the open file to be checked. Description: The file parameter is a file pointer. This file pointer must be valid and must point to a file that was successfully opened by fopen() or fsockopen() (but has not been closed by fclose()).

php feof() function example

<?php
$file = fopen("./test.txt","r");
//如果文件指针没有到末尾出则一直执行
if (!feof($file))
{
    echo "文件指针不在文件末尾";
}else{
    echo "正在文件末尾";
}
?>
php feof() function