PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
ob_flush - Flush (send) the output buffer

ob_flush( ): bool

This function will send the contents of the output buffer (if any). If you want to further process the buffer's contents you have to call ob_get_contents before ob_flush as the buffer contents are discarded after ob_flush is called.

This function does not destroy the output buffer like ob_end_flush does.


This function has no parameters.

Return Values

Returns true on success or false on failure.

Related Functions

Function ob_flush:

  • Manual

Output Buffering Control Functions

Most used PHP functions