pQuery\DomNode::filter_ntype PHP Method

filter_ntype() protected method

Checks if node matches css query filter ":nth-of-type(n)"
See also: match()
protected filter_ntype ( string $n ) : boolean
$n string 1-based index
return boolean
    protected function filter_ntype($n)
    {
        return $this->typeIndex() + 1 === (int) $n;
    }
DomNode