PhpSandbox\PHPSandbox::isWhitelistedGlobal PHP Method

isWhitelistedGlobal() public method

Check if PHPSandbox instance has whitelisted global name set
public isWhitelistedGlobal ( string $name ) : boolean
$name string String of global $name to query
return boolean Returns true if PHPSandbox instance has whitelisted global $name, false otherwise
    public function isWhitelistedGlobal($name)
    {
        return isset($this->whitelist['globals'][$name]);
    }
PHPSandbox