ob_end_clean

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Clean (erase) the contents of the active output buffer and turn it off
<?php ob_end_clean(): bool
<?php     protected function handleViewException(Throwable $baseException, $obLevel)

    {

        while (ob_get_level() > $obLevel) {

            ob_end_clean();

        }



        if ($baseException instanceof ViewException) {