381 Contributors: 10 Friday, February 17, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial:
Roadmap: roadmap

Output Buffering


ob_start()Starts the output buffer, any output placed after this will be captured and not displayed
ob_get_contents()Returns all content captured by ob_start()
ob_end_clean()Empties the output buffer and turns it off for the current nesting level
ob_get_clean()Triggers both ob_get_contents() and ob_end_clean()
ob_get_level()Returns the current nesting level of the output buffer
ob_flush()Flush the content buffer and send it to the browser without ending the buffer
ob_implicit_flush()Enables implicit flushing after every output call.
ob_end_flush()Flush the content buffer and send it to the browser also ending the buffer

Related Examples