scritta al momento solo per te![]()
Codice PHP:
<?php
function cambio_eu_us(){
$html = file_get_contents("http://it.finance.yahoo.com/q?s=eurusd=x");
preg_match("#<span id=\"yfs_l10_eurusd=x\">(.*?)</span>#", $html, $cambio);
return $cambio[1];
}
$valore = cambio_eu_us();
print $valore; //1,3056
?>