title: PHP XPath ends-with
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/402211/how-to-use-xpath-function-in-a-xpathexpression-instance-programatically">How to use XPath function in a XPathExpression instance programatically?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to find all of the rows of a nested table that contain an image with an id that ends with '_imgProductImage'.</p>
  
  <p>I'm using the following query: </p>
  
  <pre><code>"//tr[/td/a/img[ends-with(@id,'_imgProductImage')]"
  </code></pre>
  
  <p>I'm getting the error: <strong>xmlXPathCompOpEval: function ends-with not found</strong></p>
  
  <p>My google searches i believe say this should be a valid query/function. What's the actual function i'm looking for if it's not "ends-with"?</p>