PHP fflush() Function

The fflush() function writes all buffered output to an open file.Returns TRUE on success and FALSE on failure.

bool fflush ( resource $handle )

This function forces a write of all buffered output to the resource pointed to by the file handle.

Example -

ParameterDescription
fileRequired. Specifies the open file stream to check