Home >> PHP >> fflush() function in PHP

fflush() function in PHP

The fflush() function used to flushes the output to a file.

Returns true on success or false on failure.

Syntax

fflush(file)

Example

$filename = 'sample.txt';
$file = fopen($filename, 'r+');
fflush($file);

Post Your Comment

Next Questions
fgetc() function
fgetss() function
file_put_contents() function
fileatime() function
filectime() function
filemtime() function
fileowner() function
fileperms() function
filesize() function
filetype() function
flock() function
fputs() function
fscanf() function
fstat() function
ftell() function
ftruncate() function
is_executable() function
is_file() function
is_link() function
is_readable() function
is_writable() function
link() function
linkinfo() function
pathinfo() function
readfile() function

Copyright ©2022 coderraj.com. All Rights Reserved.