ob_implicit_flush()
ob_implicit_flush() — Turn implicit flush on/off.
Built-in function of PHP 8.5. The manual lists it as available in PHP 4, PHP 5, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.
What it does
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.
Signature
ob_implicit_flush(bool $enable = true): void
Parameters
| Parameter | Type | What it takes |
|---|---|---|
| $enable | bool | true to turn implicit flushing on, false otherwise. |
Return value
No value is returned.
Example
The PHP manual ships no example for ob_implicit_flush(); the signature and the parameter table above are the contract.
Changelog
| Version | Change |
|---|---|
| 8.0.0 | The enable expects a bool value now; previously, an int was expected. |
See also
flush(), ob_start(), ob_end_flush()
All PHP 8.5 built-in functions
Reference card built from the PHP manual page ob_implicit_flush() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.