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