Home Tutorial Php Phpfiles PHP set_file_buffer() function with example

 
 

PHP set_file_buffer() function with example
Posted on: October 30, 2009 at 12:00 AM
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

Related Tags for PHP set_file_buffer() function with example :


Ask Questions?

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.