Search Results
This function calls the output handler (with the PHP_OUTPUT_HANDLER_CLEAN flag), discards it's return value and cleans (erases) the contents of the active output buffer. This function does not turn off the active output buffer like ob_end_clean () or ob_get_clean () does. ob_clean () will fail without an active output buffer started with the PHP_OUTPUT_HANDLER_CLEANABLE flag.
- Flush
ob_clean () - Clean (erase) the contents of the active...
- Flush
Definition and Usage The ob_get_clean() function returns the contents of the output buffer and then deletes the contents from the buffer.
Jul 23, 2025 · The ob_get_clean () function is an in-built PHP function that is used to clean or delete the current output buffer. It's also used to get the output buffering again after cleaning the buffer.
Cette fonction vide le tampon de sortie sans l'envoyer au navigateur. Cette fonction ne détruit pas le contenu du tampon de sortie comme peut le faire ob_end_clean (). Le tampon de sortie doit avoir été démarré avec la fonction ob_start () et le drapeau PHP_OUTPUT_HANDLER_CLEANABLE. Sinon, la fonction ob_clean () ne fonctionnera pas.
The ob_clean() function is a useful tool for clearing the output buffer in your PHP web application. By understanding the syntax and usage of the function, you can easily clear the output buffer to start fresh.
Cette fonction vide le tampon de sortie sans l'envoyer au navigateur. Cette fonction ne détruit pas le contenu du tampon de sortie comme peut le faire ob_end_clean ().
People also ask
What does ob_get_clean() function do?
What is OB_get_clean() function?
What is OB_clean() function in PHP?
What does OB_clean() do?
ob_clean Function Availability PHP Codex data is built by collecting PHP symbol data on the latest release of each PHP version, or the nightly builds of the active development branch, and analyzing them to determine their availability and signature data. This ensures that symbol changes and availability is technically the most accurate.
