PHP fflush () function
Definisi dan Penggunaan
fflush () berfungsi untuk membuka file menulis semua output yang buffered.
Jika berhasil ia mengembalikan TRUE, pada kegagalan kembali FALSE.
tatabahasa
fflush(file)
参数 | 描述 |
---|---|
file | 必需。规定要检查的打开文件流。 |
contoh
<?php
$file = fopen("test.txt","r+");
// some code
fflush($file);
?>
$file = fopen("test.txt","r+");
// some code
fflush($file);
?>
Lengkapi manual PHP Filesystem Referensi