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> </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
Post a Comment