0
Я новичок в PHP, и я стараюсь, чтобы очистить только погодные сводки данных прогнозного сайта, я попробовал все, что я нашел, но он возвращает только Array()PHP preg_match отображения Array()
<?php
$contents=file_get_contents("http://www.weather-forecast.com/locations/Podgorica/forecasts/latest");
preg_match('/ <a class="forecast-magellan-target" name="forecast-part-0"><div data-magellan-destination="forecast-part-0"><\/div><\/a><p class="summary"> (.*?) <\/span><\/p> /is',$contents, $matches);
print_r($matches);
?>