let obj = {};
obj["id"] = id;
obj["title"] = name;
setRadioList((radioList) => radioList.concat(obj));
$city_id=37050;
//$time = Date(H);
$time = Date('H', time() + 60*60*2);
$img='image-v3';
$tmper='temperature-data';
$dtime=array("Утром","Днем","Вечером","Ночью");
$adr_xml = 'http://export.yandex.ru/weather-ng/forecasts/' .$city_id .'.xml';
$str_error="Город с кодом " .$city_id ." не найден";
$cont_xml = file_get_contents($adr_xml) or exit($str_error);
$xml = simplexml_load_file($adr_xml); // раскладываем xml на массив
$city=$xml->attributes()->city;
$link=$xml->attributes()->link;
$t_f=$xml->fact->temperature;
if ($t_f>0) {$t_f='+'.$t_f;}
$pic=$xml->fact->$img;
$type=$xml->fact->weather_type;
$press=$xml->fact->pressure;
$humid=$xml->fact->humidity;
$wind=$xml->fact->wind_speed;
$t_color=$xml->fact->temperature[color];
$wnd_dir=$xml->fact->wind_direction;
$sunrise=$xml->day->sunrise;
$sunset=$xml->day->sunset;
$moon_phase=$xml->day->moon_phase;
if ($moon_phase<10) {$moon_phase='0'.$moon_phase;}
$moon_text=$xml->day->moon_phase[code];
if ($moon_text=='new-moon')$moon_text='Новолуние';
elseif ($moon_text=='growing-moon')$moon_text='Растущая луна';
elseif ($moon_text=='first-quarter')$moon_text='Первая четверть';
elseif ($moon_text=='full-moon')$moon_text='Полнолуние';
else $moon_text='Убывающая луна';
if ($wnd_dir==calm)$wnd_dir=e;
$str .= '<div class="uk-grid uk-grid-small"><div class="uk-width-2-5"><div class="pogoda_fact" style="background-color:#'.$t_color.'"><span class="big">'.$t_f.' °C</span><br><img src="htt' .'p:/'.'/yandex.st/weather/1.2.20/i/icons/48x48/' .$pic .'.png" alt="'.$type.'"><br><span class="uk-text-small">'.$type.'</span><br></div></div><div class="uk-width-3-5 text"><span class="uk-text-muted">Давление:</span> ' .$press .' мм рт. ст.<br> <span class="uk-text-muted">Влажность:</span> ' .$humid .' % <br> <span class="uk-text-muted">Ветер:</span> <img src="http://yandex.st/weather/1.2.20/i/wind/' .$wnd_dir .'.gif" alt="ветер"> ' .$wind .' м/с <br><br> <span class="uk-text-muted">Восход:</span> '.$sunrise.' <span class="uk-text-muted">Заход:</span> '.$sunset.'<br> '.$moon_text.' <img src="htt' .'p:/'.'/yandex.st/weather/1.2.20/i/moon/' .$moon_phase .'.gif" class="pogoda_moon" alt="фазы луны"></div></div><div class="divider-1px"></div>';
let result = []
for(let i = 1; i < 26; i++){
result.push({i: `uid-${i}`})
}
return result
}
console.log(addArr())