User of fflush() function in PHP, fflush php, fflush in php


 

User of fflush() function in PHP, fflush php, fflush in php

In the example code we will learn the use of fflush()function in PHP Program.

In the example code we will learn the use of fflush()function in PHP Program.

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);

?>

 

Ads