public static function vd($var, bool $dump = true, bool $stop = true, int $obLevel = 0): void
    {
        if ($stop) {
            while (ob_get_level() > $obLevel) {
                ob_end_clean();
            }
        }
        
        ob_start();
        if (empty($_SERVER['DOCUMENT_ROOT'])) {
            $dump ? var_dump($var) : print_r($var);
            echo PHP_EOL . str_replace("=>\n", '  =>', ob_get_clean());
        } else {
            echo '<pre>';
            $dump ? var_dump($var) : print_r($var);
            echo htmlspecialchars(str_replace("=>\n", '  =>', ob_get_clean()));
            echo '</pre>';
        }
        
        if ($stop) {
            throw new DebugStopExecutionException();
        }
    }
public static function vd($var, bool $dump = true, bool $stop = true, int $obLevel = 0): void
    {
        if ($stop) {
            while (ob_get_level() > $obLevel) {
                ob_end_clean();
            }
        }
        
        ob_start();
        if (empty($_SERVER['DOCUMENT_ROOT'])) {
            $dump ? var_dump($var) : print_r($var);
            echo PHP_EOL . str_replace("=>\n", '  =>', ob_get_clean());
        } else {
            echo '<pre>';
            $dump ? var_dump($var) : print_r($var);
            echo htmlspecialchars(str_replace("=>\n", '  =>', ob_get_clean()));
            echo '</pre>';
        }
        
        if ($stop) {
            throw new DebugStopExecutionException();
        }
    }
public static function vd ( $ var , bool $ dump = true , bool $ stop = true , int $ obLevel = 0 ) : void { if ( $ stop ) { while ( ob_get_level ( ) > $ obLevel ) { ob_end_clean ( ) ; } } ob_start ( ) ; if ( empty ( $ _SERVER [ 'DOCUMENT_ROOT' ] ) ) { $ dump ? var_dump ( $ var ) : print_r ( $ var ) ; echo PHP_EOL . str_replace ( "=>\n" , '  =>' , ob_get_clean ( ) ) ; } else { echo '<pre>' ; $ dump ? var_dump ( $ var ) : print_r ( $ var ) ; echo htmlspecialchars ( str_replace ( "=>\n" , '  =>' , ob_get_clean ( ) ) ) ; echo '</pre>' ; } if ( $ stop ) { throw new DebugStopExecutionException ( ) ; } }
Show variable debug info.
@param mixed $var
@param bool $dump = true
@param bool $stop = true
@return void
Show variable debug info .