<?php
 
error_reporting(-1);
mb_internal_encoding('utf-8');
 
$letters = explode(' ', "а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь ю я");
$translation = explode(' ', "1 2 3 4 5 6 7 8 9 0 ! @ # $ % ^ & * ( ) _ - + = [ ] { } ; : ' `");
$code = array_combine($letters, $translation);
 
$text = "нас предали, явка провалена.";
echo $cipher = strtr($text, $code) . "\n";

$decode = array_flip($code);

echo $cipher = strtr($text, $decode) . "\n";
 
// your code goes here