PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
ob_get_flush - Flush the output buffer, return it as a string and turn off output buffering
Code Examples

ob_get_flush( ): string|false

ob_get_flush flushes the output buffer, return it as a string and turns off output buffering.

The output buffer must be started by ob_start with PHP_OUTPUT_HANDLER_FLUSHABLE flag. Otherwise ob_get_flush will not work.


This function is similar to ob_end_flush, except that this function also returns the buffer as a string.


This function has no parameters.

Return Values

Returns the output buffer or false if no buffering is active.

Related Functions

Example of ob_get_flush

Show all examples for ob_get_flush

PHP Version:

Function ob_get_flush:

Output Buffering Control Functions

Most used PHP functions