我正在使用DOMDocument类来解析PHP中的HTML文档。 表的代码我使用...未使用PHP中的DOMDocument类获取标签的nodeValue?
<table>
<tr>
<td> 123 employees </td>
</tr>
<tr>
<td> $50,000 </td>
</tr>
</table>
我不能够获取标签的nodeValue,这就像在上面的格式, 即($ 50,000,123名员工)。
尝试回显元素本身:'echo(string)$ element;' – 2010-02-05 12:25:02
发布您的代码。 – 2010-02-05 12:29:36