pQuery\DomNode::filter_nchild PHP Method

filter_nchild() protected method

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