php8.5
Home/ Manual/ reference / outcontrol/ Output Buffering Control

Output Buffering Control

The Output Control functions allow you to control when output is sent from the script. This can be useful in several different situations, especially if you need to send headers to the browser after your script has begun outputting data. The Output Control functions do not affect headers sent using header or setcookie, only functions such as echo and data between blocks of PHP code.

Intro

The Output Control functions allow you to control when output is sent from the script. This can be useful in several different situations, especially if you need to send headers to the browser after your script has begun outputting data. The Output Control functions do not affect headers sent using header() or setcookie(), only functions such as echo() and data between blocks of PHP code.

Setup Constants Output-buffering Flushing-system-buffers User-level-output-buffers Examples Reference

Source: reference/outcontrol/book.xml · from the official PHP manual (php/doc-en)