downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

streamWrapper::stream_flush> <streamWrapper::stream_close
[edit] Last updated: Fri, 25 May 2012

view this page in

streamWrapper::stream_eof

(PHP 4 >= 4.3.2, PHP 5)

streamWrapper::stream_eofファイルポインタが終端にあるかどうかを調べる

説明

public bool streamWrapper::stream_eof ( void )

このメソッドは、feof() に対応してコールされます。

パラメータ

この関数にはパラメータはありません。

返り値

読み込み/書き込み位置がストリームの末尾にあってもうそれ以上読み込むデータがない場合に TRUE、 それ以外の場合に FALSE を返します。

注意

警告

ファイル全体を (file_get_contents() などで) 読み込む場合、PHP はループ内で streamWrapper::stream_read() をコールしてから streamWrapper::stream_eof() をコールします。 しかし、 streamWrapper::stream_read() が空でない文字列を返す限りは streamWrapper::stream_eof() の返り値を無視します。

参考

  • feof() - ファイルポインタがファイル終端に達しているかどうか調べる



add a note add a note User Contributed Notes streamWrapper::stream_eof
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites