Example
Delete an output buffer and send its contents to the browser:
html
<?php
ob_start();
echo "This output will be sent to the browser";
ob_end_flush();
?>
Definition and Usage
The ob_end_flush() function 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.
Syntax
text
ob_end_flush();
Technical Details
| Return Value: | Returns true if the operation was successful or false if it failed |
|---|---|
| PHP Version: | 4+ |