PhpSandbox\PHPSandbox::undefineConst PHP Méthode

undefineConst() public méthode

You can pass a string of constant $name to undefine, or an array of constant names to undefine
public undefineConst ( string | array $name )
$name string | array String of constant name or array of constant names to undefine
    public function undefineConst($name)
    {
        if (is_array($name)) {
            return $this->undefineConsts($name);
        }
        if (isset($this->definitions['constants'][$name])) {
            unset($this->definitions['constants'][$name]);
        }
        return $this;
    }
PHPSandbox