Definition :
The fflush() function in PHP is an inbuilt function which is used to write all the buffered output to an open file. The fflush() function forces a write of all buffered output to the resource pointed to by the file handle.
fflush(file)
Parameter | Description |
---|---|
file | Required. Specifies the open file to write the buffered output to |
Errors And Exception:
Given below example Write all buffered output to the open file:
Output : Hello World write in the "demo.text" file