Share on Google+Share on Google+

PHP set_file_buffer() function with example

Advertisement
In this part of the tutorial we will learn about the PHP set_file_buffer() function in context of file handling. And we will also see the example related to the set_file_buffer() function

Syntax for PHP set_file_buffer() Function

set_file_buffer(file_handle,buffer)

  • It sets the buffer of the given file_handler with the given size


PHP set_file_buffer() Function with Example

Code for PHP set_file_buffer() Function

<?php
    $file
=fopen("bb.txt","w");
    $a
=set_file_buffer($file,200);
    if
($a)
        echo
"buffer is set";
    else
        echo
"buffer is not set";
?>

Output
buffer is set

Advertisements

Posted on: October 30, 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.