private function _isEndWithSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $len = strlen($this->_value);
            if ($len > 0) {
                $attr = $node->getAttribute($this->_attrName);
                $attrLen = strlen($attr);
                return $len <= $attrLen
                    && strpos($attr, $this->_value, $attrLen - $len) !== false;
            }
        }
        return false;
    }
private function _isEndWithSelector($node)
    {
        if ($node->hasAttribute($this->_attrName)) {
            $len = strlen($this->_value);
            if ($len > 0) {
                $attr = $node->getAttribute($this->_attrName);
                $attrLen = strlen($attr);
                return $len <= $attrLen
                    && strpos($attr, $this->_value, $attrLen - $len) !== false;
            }
        }
        return false;
    }
private function _isEndWithSelector ( $ node ) { if ( $ node -> hasAttribute ( $ this -> _attrName ) ) { $ len = strlen ( $ this -> _value ) ; if ( $ len > 0 ) { $ attr = $ node -> getAttribute ( $ this -> _attrName ) ; $ attrLen = strlen ( $ attr ) ; return $ len <= $ attrLen && strpos ( $ attr , $ this -> _value , $ attrLen - $ len ) !== false ; } } return false ; }
End with selector.

Selects elements that have the specified attribute with a value ending
exactly with a given string. The comparison is case sensitive.

@param DOMElement $node DOMElement object

@link http://api.jquery.com/attribute-ends-with-selector/
@return boolean
End with selector .