pQuery\DomNode::hasAttribute PHP Method

hasAttribute() public method

Checks if node has attribute
public hasAttribute ( $attr, string $compare = 'total', boolean $case_sensitive = false ) : boolean
$compare string Find node using "namespace", "name" or "total"
$case_sensitive boolean Compare with case sensitivity
return boolean
    function hasAttribute($attr, $compare = 'total', $case_sensitive = false)
    {
        return (bool) $this->findAttribute($attr, $compare, $case_sensitive);
    }
DomNode