PHP Simple HTML DOM Parser find string -


I am using PHP Simple Dome Parser but there is no functionality in searching for text. I have to search for a string and get the original ID for it. Originally behind normal use

How do anyone know?

  $ D = new DOMDocument (); $ D & gt; LoadXML ($ XML); $ X = new DOMXPath ($ d); $ Result = $ x-> Rate ("// text () ([., '617.99']] / ancestor :: * / @ id"); $ unique = null; ($ I = $ result-> Length -1; $ I> = 0 & amp; amp; item = $ result-> item ($ i); $ i -) {if ($ x-> gt; Query ("// * [@ id = "Addlashes ($ item-> values)." '] ") -> gt; length == 1) {echo' is unique ID '. $ Item- & gt; value" \ n ". $ Unique = $ Item- & gt; value; break;}} if (is_null (unique $)) 'no unique ID found' echo;    

Comments