PHP ob_end_flush() Function

PHP ob_flush() Function
PHP ob_get_clean() Function

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?

ob_end_flush();

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();
?>
PHP ob_flush() Function
PHP ob_get_clean() Function
en English
X
Scroll to Top