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

search for in the

SplFileObject::fgetc> <SplFileObject::eof
[edit] Last updated: Fri, 25 May 2012

view this page in

SplFileObject::fflush

(PHP 5 >= 5.1.0)

SplFileObject::fflush出力をファイルにフラッシュする

説明

public bool SplFileObject::fflush ( void )

バッファリングされたすべての出力をファイルに強制的に書き込みます。

パラメータ

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

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 SplFileObject::fflush() の例

<?php
$file 
= new SplFileObject('misc.txt''r+');
$file->rewind();
$file->fwrite("Foo");
$file->fflush();
$file->ftruncate($file->ftell());
?>

参考



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

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