ob_get_level

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Return the nesting level of the output buffering mechanism
<?php ob_get_level(): int
<?php     {

        echo json_encode(['stream' => true, 'body' => $body, 'endStream' => true]);



        if (ob_get_level() > 0) {

            ob_flush();

        }
<?php             return parent::evaluatePath($__path, $__data);

        }



        $obLevel = ob_get_level();



        ob_start();
<?php     protected function evaluatePath($path, $data)

    {

        $obLevel = ob_get_level();



        ob_start();
<?php     protected function handleViewException(Throwable $e, $obLevel)

    {

        while (ob_get_level() > $obLevel) {

            ob_end_clean();

        }
<?php     protected function handleViewException(Throwable $baseException, $obLevel)

    {

        while (ob_get_level() > $obLevel) {

            ob_end_clean();

        }