$html = new DOMDocument();
$parser->loadHTML(file_get_contents('http://r10.net'));

foreach($parser->getElementsByTagName('a') as $url) {
        echo $url->getAttribute('href') . $url->getAttribute('rel') . $url->getAttribute('title') . "<br />";
}