php解析html dom元素
// Create DOM from URL or file$html = file_get_html('http://www.google.com/');// Find all imagesforeach($html->find('img') as $element) echo $element->src . '<br>';// Find all linksforeach($html->find('a') as $element) echo $element->href . '<br>';
下载PHP Simple HTML DOM Parser用户还喜欢


评论