ob_end_clean
Description
The ob_end_clean of Output Control for PHP clean (erase) the output buffer and turn off output buffering.
Syntax
ob_end_clean(): bool
Return
Returns true on success or false on failure. Reasons for failure are first that you called the function without an active buffer or that for some reason a buffer could not be deleted (possible for special buffer).
Examples
1 · return
<?
ob_start();
echo "output";
$return = ob_end_clean();
var_export($return);
true
2 · output
<?
ob_start();
echo "output";
ob_end_clean();