What is simple html dom?
PHP Simple HTML DOM ParserA fast, simple and reliable HTML document parser for PHP. Show
Created by S.C. Chen, based on HTML Parser for PHP 4 by Jose Solorzano. Parse any HTML documentPHP Simple HTML DOM Parser handles any HTML document, even ones that are considered invalid by the HTML specification. Select elements using CSS selectorsPHP Simple HTML DOM Parser supports CSS style selectors to navigate the DOM, similar to jQuery. Download
Contributing
LicensePHP Simple HTML DOM Parser is Free Software licensed under the MIT License. Index
Quick StartTop
$html->find('div[id=hello]', 0)->innertext = 'foo'; echo $html;
print_r($articles); How to create HTML DOM object?Top
How to find HTML elements?Top
Supports these operators in attribute selectors:
How to access the HTML element's attributes?Top
echo $e->tag;
Top You can also call methods with Camel naming convertions. mixed element element element element element Top Top |