I am trying to get 1,9110 from the string:
<span class="c_name">€ EUR</span> <span class="c_value">1,9110</span>
And my code is:
// EUR //
if(preg_match('/<span class="c_name">€ EUR<\/span> <span class="c_value">(.*?)<\/span>/mis', $rawresult, $result))
{
$banks['access']['sale']['EUR'] = $result[1];
} else {
$banks['access']['sale']['EUR'] = false;
}
var_dump($banks);
// EUR //
But this code isn't working
$result[1] = "1,9110".htmlspecialchars()on the string and use€in the match