public function getAttrByAttr($attr, $attr_value, $attr_to_get) {
        $nodes = $this->_dom_x_path->query("//*[contains(@{$attr}, '{$attr_value}')]");
        
        $contents = [];
        
        foreach ($nodes as $node) {
            array_push($contents, $node->getAttribute($attr_to_get));
        }
        
        return $contents;
    }
public function getAttrByAttr($attr, $attr_value, $attr_to_get) {
        $nodes = $this->_dom_x_path->query("//*[contains(@{$attr}, '{$attr_value}')]");
        
        $contents = [];
        
        foreach ($nodes as $node) {
            array_push($contents, $node->getAttribute($attr_to_get));
        }
        
        return $contents;
    }
public function getAttrByAttr ( $ attr , $ attr_value , $ attr_to_get ) { $ nodes = $ this -> _dom_x_path -> query ( "//*[contains(@{$attr}, '{$attr_value}')]" ) ; $ contents = [ ] ; foreach ( $ nodes as $ node ) { array_push ( $ contents , $ node -> getAttribute ( $ attr_to_get ) ) ; } return $ contents ; }
Get attribute value using other attributes

@example     getAttrByAttr('class', 'thumbnail', 'href')

@param    string    @attr            Element attribute
@param    string    @attr_value        Element attribute value
@param    string    @attr_to_get    Name of attribute to get

@return    array
Get attribute value using other attributes