fflush() 函数向打开的文件写入所有的缓冲输出。
如果成功则返回 TRUE,如果失败则返回 FALSE。
<?php
$file
=
fopen
(
"test.txt"
,
"r+"
);
// some code
fflush
?>