public static function toString()
    {
        $return = [];

        foreach (static::$globals as $key => $value) {
            $type = gettype($value);

            if (is_callable($value)) {
                $valueString = 'callable';
                $type = 'callable';
            } elseif (is_array($value)) {
                $valueString = implode(', ', $value);
            } else {
                $valueString = (string)$value;
            }

            $return[] = sprintf(
                '"%s": (%s) %s',
                $key,
                $type,
                $valueString
            );
        }

        return implode(PHP_EOL, $return);
    }
public static function toString()
    {
        $return = [];

        foreach (static::$globals as $key => $value) {
            $type = gettype($value);

            if (is_callable($value)) {
                $valueString = 'callable';
                $type = 'callable';
            } elseif (is_array($value)) {
                $valueString = implode(', ', $value);
            } else {
                $valueString = (string)$value;
            }

            $return[] = sprintf(
                '"%s": (%s) %s',
                $key,
                $type,
                $valueString
            );
        }

        return implode(PHP_EOL, $return);
    }
public static function toString ( ) { $ return = [ ] ; foreach ( static :: $ globals as $ key => $ value ) { $ type = gettype ( $ value ) ; if ( is_callable ( $ value ) ) { $ valueString = 'callable' ; $ type = 'callable' ; } elseif ( is_array ( $ value ) ) { $ valueString = implode ( ', ' , $ value ) ; } else { $ valueString = ( string ) $ value ; } $ return [ ] = sprintf ( '"%s": (%s) %s' , $ key , $ type , $ valueString ) ; } return implode ( PHP_EOL , $ return ) ; }
Return keys and values of global variables as string
@return string
Return keys and values of global variables as string