- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
<?php
$html = file_get_contents('http://rtfm.openlife.co/');
$dom = new DOMDocument();
@$dom->loadHTML($html);
$titles = $dom->getElementsByTagName('title');
$title = $titles->item(0)->nodeValue;
var_dump($title);