public static function dump(...$vars)
    {
        // We force the start of the session so that it is initialized before the first exit.
        switch (session_status()) {
            case PHP_SESSION_DISABLED:
            case PHP_SESSION_ACTIVE:
                break;
            default:
                $di = Di::getDefault();
                if ($di->has(Services::SESSION)) {
                    $di->get(Services::SESSION);
                } else {
                    session_start();
                }
        }

        foreach ($vars as $var) {
            $id = 'nuc-dump-' . self::uid();

            $dump = (new self)->varDump($var);

            echo self::outputBasic() . "<pre class='nuc-dump' id='$id'>$dump</pre><script>nucDumper('$id')</script>";
        }
    }
public static function dump(...$vars)
    {
        // We force the start of the session so that it is initialized before the first exit.
        switch (session_status()) {
            case PHP_SESSION_DISABLED:
            case PHP_SESSION_ACTIVE:
                break;
            default:
                $di = Di::getDefault();
                if ($di->has(Services::SESSION)) {
                    $di->get(Services::SESSION);
                } else {
                    session_start();
                }
        }

        foreach ($vars as $var) {
            $id = 'nuc-dump-' . self::uid();

            $dump = (new self)->varDump($var);

            echo self::outputBasic() . "<pre class='nuc-dump' id='$id'>$dump</pre><script>nucDumper('$id')</script>";
        }
    }
public static function dump ( ... $ vars ) { // We force the start of the session so that it is initialized before the first exit. switch ( session_status ( ) ) { case PHP_SESSION_DISABLED : case PHP_SESSION_ACTIVE : break ; default : $ di = Di :: getDefault ( ) ; if ( $ di -> has ( Services :: SESSION ) ) { $ di -> get ( Services :: SESSION ) ; } else { session_start ( ) ; } } foreach ( $ vars as $ var ) { $ id = 'nuc-dump-' . self :: uid ( ) ; $ dump = ( new self ) -> varDump ( $ var ) ; echo self :: outputBasic ( ) . "<pre class='nuc-dump' id='$id'>$dump</pre><script>nucDumper('$id')</script>" ; } }
Dumps information about a variable

@param mixed ...$vars
Dumps information about a variable