header('Content-type: text/plain'); $valutaInterest = array( "EUR", "USD", // "JPY", // "CAD", "GBP" ); $today = date("Y.m.d."); $page = file_get_contents( sprintf( "http://www.mnb.hu/engine.aspx?page=arfolyamtablazat&query=$today,$today,1,%s", implode(",",$valutaInterest) ) ); // multipliers preg_match_all('/