Flush
The flush()
method can be used to write all buffered output to the open file.
$stream = FileStream::open('persons.txt', 'r+b')
->put($data)
->flush();
PHP's fflush()
is used to perform the flush operation.
The flush()
method can be used to write all buffered output to the open file.
$stream = FileStream::open('persons.txt', 'r+b')
->put($data)
->flush();
PHP's fflush()
is used to perform the flush operation.