Share on Google+Share on Google+

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

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

?>

 

Advertisements

Posted on: September 21, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.