<?php include 'simple_html_dom.php'; $content = file_get_contents('fwrite.txt'); $html = new \simple_html_dom(); $html->load($content); echo $html->find('#browser_name',0)->plaintext; $html->clear(); ?>
simple_html_dom类文件下载地址:
https://sourceforge.net/projects/simplehtmldom/files/
官方教程: