php - Retrieving value with Simple HTML DOM Parser -


how retrieve value simple html dom parser.

example:

<td  class="tabdata" valign="top"><a href="anouncement.asp?s=51&id=1635872">some string</a>&nbsp;&nbsp;</td> 

i need value: some string.

problem values 51 , id = "1635872" not constant.

assuming dom in $dom:

$value = $dom->find("td.tabdata a", 0)->plaintext 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -