Menu Samaritan's Purse

FFLUSH

Flushes the output to a file

SYNTAX

fflush ( resource $handle ) : bool

PARAMETERS

handle

The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

fwrite without fflush: Hello
fwrite with fflush:    Hello

PHP