function fg($str)
{
$rusToEng = ["а" => "a", "о" => "o", "у" => "y", "е" => "e", "с" => "c", "х" => "x"];
$strChanged = '';
foreach (preg_split('//u', $str) as $char) {
if ($rusToEng[$char] && rand(1, 3) == 2) {
$strChanged .= $rusToEng[$char];
} else {
$strChanged .= $char;
}
}
return $strChanged;
}
catch (InterruptedException | IOException exception)
Intent intent = new Intent(this, SomeOtherActivity.class);
intent.putExtra("NETWORK_ERROR", "Проблема с подключением"); //это опционально
startActivity(intent);
$date = DateTime::createFromFormat('Y-m-d H:i:s', '2018-09-12 19:00:23');
echo $date->format('d F Y');