- file_get_contents: documentation ( source)
- libxml_use_internal_errors: documentation ( source)
<?php
libxml_use_internal_errors(true);
$html = file_get_contents("http://www.sportsevents365.com/event/?q=eq,224264");
$doc = new \DOMDocument();
if($doc->loadHTML($html))
{
$xpath = new \DOMXPath($doc);
echo $xpath->evaluate("string(//span[./preceding-sibling::span[@itemprop='currency']])");
}