The fflush() function writes all buffered output to the open file.
Returns TRUE if successful and FALSE if failed.
fflush(file)
parameter | describe |
---|---|
file | Required. Specifies the open file stream to be inspected. |
<?php$file = fopen("test.txt","r+");// some codefflush($file);?>