fflush
Export buffered content to file
fflush()
function outputs the buffered content to a file.
<?php file = fopen ( "test.txt" , "r+" ) ; // Some code ffflush ( $file ) ; ?>
fflush ( file )
parameter | describe |
---|---|
file | Required. Specify the file flow to be checked. |
This function forces all buffered output to be written to the resource pointed to by the file handle. Return true if successful, otherwise return false.
The file pointer must be valid and must point to a file that was successfully opened by fopen()
or fsockopen()
(but has not been closed fclose()
).