pQuery\DomNode::hasClass PHP Method

hasClass() public method

Determine if node has a certain class
public hasClass ( string $className ) : boolean
$className string
return boolean
    function hasClass($className)
    {
        return $className && preg_match('`\\b' . preg_quote($className) . '\\b`si', $this->class);
    }
DomNode