PhpSandbox\PHPSandbox::whitelistGlobal PHP Méthode

whitelistGlobal() public méthode

You can pass a string of global name, or pass an array of the global names to whitelist
public whitelistGlobal ( string | array $name )
$name string | array String of global name or array of global names to whitelist
    public function whitelistGlobal($name)
    {
        if (func_num_args() > 1) {
            return $this->whitelistGlobal(func_get_args());
        }
        return $this->whitelist('globals', $name);
    }
PHPSandbox