Get a html tag and store in a php variable

Whenever I need to dig through HTML in PHP I use this package:

It makes it easy to load html from a file, url or string, then traverse it using CSS-like selectors. It comes with manual pages and examples, so it’s all pretty simple.