pQuery\DomNode::filter_nlastype PHP Метод

filter_nlastype() защищенный Метод

Checks if node matches css query filter ":nth-last-of-type(n)"
См. также: match()
protected filter_nlastype ( string $n ) : boolean
$n string 1-based index
Результат boolean
    protected function filter_nlastype($n)
    {
        if ($this->parent === null) {
            return false;
        } else {
            return count($this->parent->getChildrenByTag($this->tag, 'total', false)) - $this->typeIndex() === (int) $n;
        }
    }
DomNode