php: Parse string from html

7331

New Member
I have opend a html file with\[code\]file_get_contents('http://www.example.com/file.html')\[/code\]and want to parse the line "ParseThis":\[code\] <h1 class=\"header\">ParseThis<\/h1>\[/code\]As you can see the it's within a h1 tag (the first h1 tag from the html file). How can I get the Text "ParseThis" ?Thanks!
 
Back
Top