pQuery\DomNode::filter_last PHP Method

filter_last() protected method

Checks if node matches css query filter ":last"
See also: match()
protected filter_last ( ) : boolean
return boolean
    protected function filter_last()
    {
        if ($this->parent === null) {
            return false;
        } else {
            return $this->parent->childCount(true) - 1 === $this->index(false);
        }
    }
DomNode