PHP Function Reference

PHP streamWrapper stream_flush() Method



The PHP streamWrapper::stream_flush() method flushes the output. This method is called in response to fflush() and when the stream is being closed while any unflushed data has been written to it before.

Syntax

public streamWrapper::stream_flush()

Parameters

No parameter is required.

Return Value

Returns true if the cached data was successfully stored (or if there was no data to store), or false if the data could not be stored.

Note: If not implemented, false is assumed as the return value.

❮ PHP Streams Reference