pQuery\DomNode::removeClass PHP Method

removeClass() public method

Remove clas(ses)
public removeClass ( string | array $className )
$className string | array
    function removeClass($className)
    {
        if (!is_array($className)) {
            $className = array($className);
        }
        $class = $this->class;
        foreach ($className as $c) {
            $class = preg_replace('`\\b' . preg_quote($c) . '\\b`si', '', $class);
        }
        if ($class) {
            $this->class = $class;
        } else {
            unset($this->class);
        }
    }
DomNode