protected function getGlobals()
    {
        global $GLOBALS;

        $names = \array_keys($GLOBALS);
        \natcasesort($names);

        $ret = [];
        foreach ($names as $name) {
            $ret[$name] = $GLOBALS[$name];
        }

        return $ret;
    }
protected function getGlobals()
    {
        global $GLOBALS;

        $names = \array_keys($GLOBALS);
        \natcasesort($names);

        $ret = [];
        foreach ($names as $name) {
            $ret[$name] = $GLOBALS[$name];
        }

        return $ret;
    }
protected function getGlobals ( ) { global $ GLOBALS ; $ names = \ array_keys ( $ GLOBALS ) ; \ natcasesort ( $ names ) ; $ ret = [ ] ; foreach ( $ names as $ name ) { $ ret [ $ name ] = $ GLOBALS [ $ name ] ; } return $ ret ; }
Get defined global variables.

@return array
Get defined global variables .