【发布时间】:2012-12-06 17:27:19
【问题描述】:
这是我要解析的html部分:
<center>
<table border="0" cellpadding="0" cellspacing="0" >
<td>
Some text
<br>
<font color=brown>label0</font>Value0
<br>
<font color=brown>Label1</font>Value1.<br>
Some text
<br>
<font color=brown>Label2</font>Value2<br>
</td>
</table>
</center>
我想要获取 Value0 和 Value1。
如果我用这个:
$index=$element->nodeValue;
其中元素是对.../font 的查询我得到Label0,1,2。但我想要价值。怎么做?如果有需要我也可以提供更多代码。
【问题讨论】: