streamWrapper::stream_eof() - php 流stream类
streamWrapper::stream_eof()
(PHP 4 >= 4.3.2, PHP 5, PHP 7)
Tests for end-of-file on a file pointer
说明
publicstreamWrapper::stream_eof(void): boolThis method is called in response tofeof().
参数
此函数没有参数。
返回值
Should returnTRUE
if the read/write position is at the end of the stream and if no more data is available to be read,orFALSE
otherwise.
注释
WarningWhen reading the whole file (for example,withfile_get_contents()), PHP will callstreamWrapper::stream_read()followed bystreamWrapper::stream_eof()in a loop but as long asstreamWrapper::stream_read()returns a non-empty string, the return value ofstreamWrapper::stream_eof()is ignored.
参见
feof()
测试文件指针是否到了文件结束的位置
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!