This is easy using the Simple HTML DOM.
$html = file_get_html('http://www.google.com/');
$linklabel = array();
$link = array();
foreach($html->find('a') as $element)
{
array_push($linklabel, $element->innerText);
array_push($link, $element->href);
}
Unicron
2010-07-01 23:50:01