$al=file_get_contents("http://www.xxx.com"); preg_match('#<a href="(.*?)">(.*?)</a>#si',$al, $a); çıktı ; echo $a[1]; //= http:// echo $a[2]; //= title