Current Location: Home> Function Categories> ob_flush

ob_flush

Refresh (send) output buffer
Name:ob_flush
Category:Output buffer control
Programming Language:php
One-line Description:Output the contents of the top-most output buffer and clear the buffer.

Definition and usage

ob_flush() function outputs the contents of the top-level output buffer, and then clears the contents of the buffer. The output may be captured by another output buffer, or if there is no other output buffer, it will be sent directly to the browser.

Example

Output the contents of the buffer without deleting it:

 <?php
ob_start ( ) ;
echo "This part of the output will be sent to the browser" ;
ob_flush ( ) ;
echo "This part of the output will not be sent to the browser" ;
ob_end_clean ( ) ;
?>

Try it yourself

grammar

 ob_flush ( ) ;
Similar Functions
Popular Articles