PHP 代码:
<?php
    $content 
file_get_contents('http://www.QuChao.com');
    if (
preg_match_all('/<link.+?rel=[\"|\']?alternate[\"|\']?.+?href=[\"|\']?([^(\"|\')]*)[\"|\']?/is'$content$match)) {
        
print_r($match);
    } else {
        echo 
'error';
    }
?>