Write all buffered output to the open file:
<?php
$file = fopen("test.txt","r+");
rewind($file);
fwrite($file, 'Hello World');
fflush($file);
fclose($file);
?>
The fflush() function writes all buffered output to an open file.
fflush(
file)
Parameter | Description |
---|---|
file | Required. Specifies the open file to write the buffered output to |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.0.1+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!