I\'m using this example to fetch links from a website :
http://www.merchantos.com/makebeta/php/scraping-links-with-php/
$xpath = new DOMXPath($dom); $hre
You are looking for the "nodeValue" of the Textnode inside the "a" node. You can get that value with
$title = $href->firstChild->nodeValue;
Full working example:
DONE