I write a small tool for websites, I get HTML code with file_get_contents(), needed is to convert this code into a object like JSON or Array because I want to get some parts like content from <title> tag or to check if any <h1> exist...
I'm interessted to know what is the best method to parse this html code?
