$site=file_get_contents("site.com"); $title = explode('<h1>',$site); $title2 = explode('</h1>',$site); echo $title[0]; echo $title2[0];