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

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

Checks if node matches css query filter ":nth-last-child(n)"
См. также: match()
protected filter_nlastchild ( string $n ) : boolean
$n string 1-based index
Результат boolean
    protected function filter_nlastchild($n)
    {
        if ($this->parent === null) {
            return false;
        } else {
            return $this->parent->childCount(true) - $this->index(false) === (int) $n;
        }
    }
DomNode