ob_get_clean

Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Get the contents of the active output buffer and turn it off
<?php ob_get_clean(): string|false
<?php         var_dump($var);



        try {

            $output = ob_get_clean();

            assert(is_string($output));



            return strip_tags(html_entity_decode($output));