In this article, you will learn how to get the contents of the output buffer which is placed at the top of the stack, and then delete the buffer. The ob_end_flush() function in PHP deletes the topmost output buffer and outputs all of its contents. The output may be caught by another output buffer, or, if there are no other output buffers, sent directly to the browser.
what is the syntax of the OB_END_FLUSH() function in php?
examples of the OB_END_FLUSH() function
Example 1. In this example, we delete an output buffer and send its contents to the browser.
<?php ob_start(); echo "This output will be sent to the browser"; ob_end_flush(); ?>