Current Location: Home> Function Categories> fflush

fflush

Export buffered content to file
Name:fflush
Category:File system
Programming Language:php
One-line Description:Output buffered content to the open file.

Example

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
file <span class="token operator">=</span> <span class="token function">fopen</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">,</span> <span class="token string double-quoted-string">"r+"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>

<span class="token comment">// Some code</span>

<span class="token function">ffflush</span> <span class="token punctuation">(</span> <span class="token variable">$file</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>
Similar Functions
  • Read files (safely used in binary files) fread

    fread

    Readfiles(safelyused
  • Create a new directory mkdir

    mkdir

    Createanewdirectory
  • Write data to a file file_put_contents

    file_put_contents

    Writedatatoafile
  • Close an open file pointer fclose

    fclose

    Closeanopenfilepoint
  • Returns the normalized absolute path name realpath

    realpath

    Returnsthenormalized
  • Close process file pointer pclose

    pclose

    Closeprocessfilepoin
  • Modify all groups of symbolic links lchgrp

    lchgrp

    Modifyallgroupsofsym
  • Change the current umask umask

    umask

    Changethecurrentumas