PhpSandbox\PHPSandbox::undefineMagicConsts PHP Méthode

undefineMagicConsts() public méthode

You can pass an array of magic constant names to undefine, or an empty array or null argument to undefine all magic constants
public undefineMagicConsts ( array $magic_constants = [] )
$magic_constants array Array of magic constant names to undefine. Passing an empty array or no argument will result in undefining all magic constants
    public function undefineMagicConsts(array $magic_constants = [])
    {
        if (count($magic_constants)) {
            foreach ($magic_constants as $magic_constant) {
                $this->undefineMagicConst($magic_constant);
            }
        } else {
            $this->definitions['magic_constants'] = [];
        }
        return $this;
    }
PHPSandbox