ob_end_clean()
Posted: Thu Oct 16, 2003 12:37 pm
I think this does what it's ment to but could someone please confirm that this will in fact clear the buffer before the page is echo'd to the browser.
I know this could be done using ob_start("DoBuffer") but it's only an example... I'm using the buffer stuff within a class.
Code: Select all
ob_start();
function DoBuffer()
{
$buffer = ob_get_contents();
ob_end_clean();
// Do some stuff with the buffer contents
echo $buffer;
}
DoBuffer();