Example of fflush() function in PHP
The ffush() function is used to write all the buffered data to the an open file.
Syntax of fflush() function in PHP
fflush(file)
Code for fflush() function in PHP
<?php
$file1=fopen("c:/rose1/ram.txt","r");
//some file updation code
//finally update the data into file using the fflush() function
fflush($file1);
?>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.