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 -

Python ctypes access violation with const pointer arguments -