开发者_StackOverflow社区I am using simple_html_dom to parse a website. Is there a way to extract the doctype?You can use file_get_contents function to get all HTML data from website.