SplFileObject::fflush
(PHP 5 >= 5.1.0)
SplFileObject::fflush — ارسال خروجی به فایل
Description
public boolean SplFileObject::fflush
( void
)
نوشتن اجباری تمام خروجی بافر شده به فایل.
Parameters
This function has no parameters.
Return Values
Returns TRUE on success or FALSE on failure.
Examples
Example #1 مثال SplFileObject::fflush()
<?php
$file = new SplFileObject('misc.txt', 'r+');
$file->rewind();
$file->fwrite("Foo");
$file->fflush();
$file->ftruncate($file->ftell());
?>
See Also
- SplFileInfo::fwrite()
There are no user contributed notes for this page.
