This is my solution:
", $website, $matches); // save all links \x22 = "
// delete redundant parts
$matches = str_replace("a href=", "", $matches); // remove a href=
$matches = str_replace("\"", "", $matches); // remove "
// output all matches
print_r($matches[1]);
?>
I recommend to avoid using xml-based parsers, because you will not always know, whether the document/website has been well formed.
Best regards