PHP fflush() 函數(shù)

定義和用法
fflush() 函數(shù)向打開的文件寫入所有的緩沖輸出。
如果成功則返回 TRUE,如果失敗則返回 FALSE。
語(yǔ)法
fflush(file)
參數(shù) | 描述 |
---|---|
file | 必需。規(guī)定要檢查的打開文件流。 |
實(shí)例
<?php
$file = fopen("test.txt","r+");
// some code
fflush($file);
?>
$file = fopen("test.txt","r+");
// some code
fflush($file);
?>

更多建議: