Current Location: Home> Function Categories> ob_end_clean

ob_end_clean

Clear (erase) the output buffer and turn off the output buffer
Name:ob_end_clean
Category:Output buffer control
Programming Language:php
One-line Description:Delete the top-most output buffer and all its contents.

Definition and usage

ob_end_clean() function deletes the top-most output buffer and all its contents without sending anything to the browser.

Example

Delete the output buffer without sending its content to the browser:

 <?php  
ob_start ( ) ;  
echo "This part of the output will not be sent to the browser" ;  
ob_end_clean ( ) ;  
echo "This part of the output will be sent to the browser" ;  
?>

Try it yourself

grammar

 ob_end_clean ( ) ;
Similar Functions
Popular Articles