ob_implicit_flush

Turn implicit flush on/off

Description

void ob_implicit_flush(bool $enable = true)

ob_implicit_flush will turn implicit flushing on or off. Implicit flushing will result in a flush operation after every block of code resulting in output, so that explicit calls to flush will no longer be needed.

Note: Printing empty strings or sending headers is not considered output and will not result in a flush operation.

Note: This function does not have any effect on user level output handlers such as those started by ob_start or output_add_rewrite_var.

Parameters

enable

true to turn implicit flushing on, false otherwise.

Return Values

No value is returned.

Changelog

Version Description
8.0.0 The enable expects a bool value now; previously, an int was expected.

See Also

  • flush
  • ob_start
  • ob_end_flush