Php/func filesystem fflush
来自菜鸟教程
PHP fflush()函数
例
将所有缓冲的输出写入打开的文件:
<?php
$file = fopen("test.txt","r+");
rewind($file);
fwrite($file, 'Hello World');
fflush($file);
fclose($file);
?>
定义和用法
fflush()函数将所有缓冲的输出写入打开的文件。
句法
fflush(file)
参数值
| 参数 | 描述 |
|---|---|
| file | 需要。指定打开文件以将缓冲的输出写入 |
技术细节
| 返回值: | 成功则为TRUE,失败则为FALSE |
| PHP版本: | 4.0.1+ |