Searching an HTML document in PHP

Kumara

New Member
I'm trying to use DOMDocument and XPath to search an HTML document using PHP. I want to search by a number such as '022222', and it should return the value of the corresponding h2 tag. Any thoughts on how this would be done?The HTML document can be found at http://pastie.org/1211369
 
Back
Top