Possible Duplicate:
How to parse and process HTML with PHP?
i get page with file_get_content and i want extract all link in page any way to do this? or can i use str with start an end phares to get target string like this :
$str=fdgdfbfbmnlmnjkl njnkhvnbn j<a href="http://www.google.com">google</a>
$link=str($str,"start","END")??????????
EX : $link=str($str,"http://www","com")=Res=>http://www.google.com or google?
or
$str=file_get_content("http://www.google.com");
$link=str($str,"start","END")??????????
EX : $link=str($str,"http://www","com")=Res=>http://www.google.com or google?