- 授权协议: MIT
- 开发语言: PHP
- 操作系统: 跨平台
- 软件首页: http://simplehtmldom.sourceforge.net/
- 软件文档: http://simplehtmldom.sourceforge.net/manual.htm
软件介绍
这是一个 PHP5 的 HTML 文档解析器,示例代码:
// Create DOM from URL or file
$html = file_get_html('http://www.google.com/');
// Find all images
foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links
foreach($html->find('a') as $element)
echo $element->href . '<br>';