streamWrapper::stream_eof

(PHP 4 >= 4.3.2, PHP 5, PHP 7)

streamWrapper::stream_eofTests for end-of-file on a file pointer

说锟斤拷

public streamWrapper::stream_eof ( void ) : bool

This method is called in response to feof().

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

Should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise.

注锟斤拷

Warning

When reading the whole file (for example, with file_get_contents()), PHP will call streamWrapper::stream_read() followed by streamWrapper::stream_eof() in a loop but as long as streamWrapper::stream_read() returns a non-empty string, the return value of streamWrapper::stream_eof() is ignored.

锟轿硷拷

  • feof() - 锟斤拷锟斤拷锟侥硷拷指锟斤拷锟角凤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷位锟斤拷