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?


examples of the OB_END_FLUSH() function

Example 1. In this example, we delete an output buffer and send its contents to the browser.

echo "This output will be sent to the browser";
PHP ob_flush() Function
PHP ob_get_clean() Function

Add comment

Tutor Network

Share this

Learn PHP from A to Z