private function _isStartWithSelector($node)
    {
        if ($node->hasAttribute($this->_attrName) && strlen($this->_value) > 0) {
            $attrValue = $node->getAttribute($this->_attrName);
            return strpos($attrValue, $this->_value) === 0;
        }
        return false;
    }
private function _isStartWithSelector($node)
    {
        if ($node->hasAttribute($this->_attrName) && strlen($this->_value) > 0) {
            $attrValue = $node->getAttribute($this->_attrName);
            return strpos($attrValue, $this->_value) === 0;
        }
        return false;
    }
private function _isStartWithSelector ( $ node ) { if ( $ node -> hasAttribute ( $ this -> _attrName ) && strlen ( $ this -> _value ) > 0 ) { $ attrValue = $ node -> getAttribute ( $ this -> _attrName ) ; return strpos ( $ attrValue , $ this -> _value ) === 0 ; } return false ; }
Start with selector.

Selects elements that have the specified attribute with a value beginning
exactly with a given string.

@param DOMElement $node DOMElement object

@link http://api.jquery.com/attribute-starts-with-selector/
@return boolean
Start with selector .