yii\base\ErrorHandler::clearOutput PHP Method

clearOutput() public method

Removes all output echoed before calling this method.
public clearOutput ( )
    public function clearOutput()
    {
        // the following manual level counting is to deal with zlib.output_compression set to On
        for ($level = ob_get_level(); $level > 0; --$level) {
            if (!@ob_end_clean()) {
                ob_clean();
            }
        }
    }