file_get_contents_curl is not a function. Did you try something like this:
$html = download($url);
function download($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$data = curl_exec($ch);
curl_close($ch);
unset($ch);
return $data;
}
function get_price($html)
{
$pattern = '/<strong class="purchase-form__price js-purchase-price">(.*?)<\/strong>/s';
preg_match_all($pattern, $html, $result);
return trim($result[1][0]);
}