simple_html_dom获取表中的数据

时间:2013-08-04 07:21:54

标签: php php-5.3 simple-html-dom domparser

我正在尝试从网站http://www.fastfurnishings.com/sofa-bed-couch-sleeper-lounger-futon-fabric-leather-sofas-s/50.htm获取产品名称,并且我很难理解如何到达表并解析元素 到目前为止我有这个

$html = $this->file_get_html('http://www.fastfurnishings.com/sofa-bed-couch-sleeper-lounger-futon-fabric-leather-sofas-s/50.htm');
 $x = $html->find('table',6);
var_dump的{​​p} $x给了我很多objets和数组,我没有得到我需要的地方,从表中获取产品名称。任何帮助将不胜感激 感谢

0 个答案:

没有答案