fflush
fflush
Flushes the output to a file
bool **fflush** resource $stream
This function forces a write of all buffered output to the resource
pointed to by the file .
stream
stream
return.success
**Voorbeeld: File write example using **
<?php
$filename = 'bar.txt';
$file = fopen($filename, 'r+');
rewind($file);
fwrite($file, 'Foo');
fflush($file);
ftruncate($file, ftell($file));
fclose($file);
?>
clearstatcache``fwrite