运维网's Archiver
论坛
›
php
› 使用php simple html dom parser解析html标签
冰恋
发表于 2018-12-22 09:44:13
使用php simple html dom parser解析html标签
// Create DOM from string
$html = str_get_html('SimpleParser');
$html->find('div', 1)->class = 'bar';
$html->find('div', 0)->innertext = 'Foo';
// Output: FooParser
echo $html;
页:
[1]
查看完整版本:
使用php simple html dom parser解析html标签