ob_clean

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Clean (erase) the contents of the active output buffer
<?php ob_clean(): bool
<?php     public function disable(): void

    {

        @ob_clean(); // @phpstan-ignore-line



        if ($this->buffer !== '') {

            $this->flush();
<?php         $contents = ob_get_contents();



        ob_clean();



        return (string) $contents;

    }