Комфорт|is";
$table_weather = preg_match($pattern, $table_weather, $out);
echo "".$out[1]."
";
$pattern_2 = "| | Gismeteo | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) |
|is";
$tr_date = preg_match($pattern_2, $out[1], $out_2);
$pattern_3 = "|Давление мм рт.ст. | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) |
|is";
$tr_davlenie = preg_match($pattern_3, $out[1], $out_3);
$pattern_4 = "|Температура,°C | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) |
|is";
$tr_temp = preg_match($pattern_4, $out[1], $out_4);
$pattern_5 = "|Влажность,% | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) |
|is";
$tr_vlaga = preg_match($pattern_5, $out[1], $out_5);
$pattern_6 = "|Ветер, метр/сек | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) | (.*?) |
|is";
$tr_veter = preg_match($pattern_6, $out[1], $out_6);
for($i = 1; $i < 12; $i++)
{
echo "".$i.". ".str_replace('
', ' ', $out_2[$i]).", ".str_replace('
', '-', $out_3[$i]).", ".str_replace('
', ' ... ', $out_4[$i]).", ".str_replace('
', '-', $out_5[$i]).", ".str_replace('
', ' ', $out_6[$i])."
";
}
?>