これは私が解析したい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;
ここで、element は.../font
、Label0,1,2 を取得するためのクエリです。しかし、私は価値が欲しいです。どうやってするの?必要に応じて、さらにコードを提供することもできます。