PhpSandbox\PHPSandbox::undefineFuncs PHP Méthode

undefineFuncs() public méthode

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