You should use the Dom Document class. Something like the following to initialize it:
$doc = new DOMDocument();
//load HTML string into document object
if ( ! @$doc->loadHTML($html)){
return FALSE;
}
//create XPath object using the document object as the parameter
$xpath = new DOMXPath($doc);
$query = "//span[@class='value-title']";
//XPath queries return a NodeList
$res = $xpath->query($query);
$title = $res->item(0)->getAttribute('title');