т
Size: a a a
т
А
т
т
т
А
т
А
ДК
foreach ($infoTemp as $key => $value)
{
$log->info(json_encode($key));
if ($key == "TextMessage") {
$log->info('text message');
$constructMessage($infoTemp["TextMessage"]);
break;
} elseif ($key == "pause") {
$time = $infoTemp["pause"]["wait"];
$log->info("я сплю $time секунд(ы)");
sleep($time);
continue;
}
}
М
М
б
ДК
AP
б
б
ДК
М
L
L
function convz($arr){
$a = mb_detect_encoding($arr);
if($a === "ANSI"){
return $arr;
}
if(preg_match("/([а-я]+)/ui", $arr)) {
return $arr;
} else {
$res = mb_convert_encoding($arr, "Windows-1252", "UTF-8");
return $res;
}
}