function get_element_by_attr($dom,$attr,$value) { $finder = new DomXPath($dom); $nodes = $finder->query("//*[contains(concat(' ', normalize-space(@{$attr}), ' '), ' $value ')]"); return $nodes; }
function get_element_by_attr($dom,$attr,$value) { $finder = new DomXPath($dom); $nodes = $finder->query("//*[contains(concat(' ', normalize-space(@{$attr}), ' '), ' $value ')]"); return $nodes; }