@underbottom/

exam after chapter

PHP (Legacy)

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4477412209965457","path":"main.php","file":{"path":"main.php","content":{"asEncoding":{"base64":"PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokdGV4dD0i0LFh0L3QsNC9IGvRg9C70LXRgCBw0L7RgNGI0LDRhSDRgtC10LvQtdCz0YDQsNC8bSDQsHDQutCwIGh1aSI7CgokbGV0dGVycz0gWwogICJbeV0iID0+ICLRgyIsCiAgIltrXSIgPT4gImsiLAogICJbcF0iID0+ICLRgCIsCiAgIlthXSIgPT4gItCwIiwKICAiW3RdIiA9PiAi0YIiLAogICJbbV0iID0+ICJtIgpdOwoKLy/QvdGD0LbQvdGLINC00LvRjyDQutC+0YDRgNC10LrRgtC90L7QuSDRgNCw0LHQvtGC0Ysg0YDQtdCz0YPQu9GP0YDQutC4LgokdGV4dCA9ICIgIiAuICR0ZXh0IC4gIiAiOwoKJHJlZ2V4cD0iLyhcc3xb0LAt0Y9dKykoW2Etel0pKFxzfFvQsC3Rj10rKS91aSI7CiR0ZXh0ID0gcHJlZ19yZXBsYWNlKCRyZWdleHAsIiQxWyQyXSQzIiwkdGV4dCk7CmVjaG8gInskdGV4dH0gLSDQvtGI0LjQsdC60Lgg0LLRi9C00LXQu9C90Ysg0LIg0LrQstCw0LTRgNCw0YLQvdGL0LUg0YHQutC+0LHQutC4LlxuIjsKJHRleHQgPSBzdHJ0ciAoJHRleHQsJGxldHRlcnMpOwplY2hvICJ7JHRleHR9IC0g0L7RiNC40LHQutC4INCx0YvQu9C4INC40YHQv9GA0LDQstC70LXQvdGLLlxuIjsKCj8+"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

error_reporting(-1);

$text="бaнан kулер pоршах телеграмm аpка hui";

$letters= [
  "[y]" => "у",
  "[k]" => "k",
  "[p]" => "р",
  "[a]" => "а",
  "[t]" => "т",
  "[m]" => "m"
];

//нужны для корректной работы регулярки.
$text = " " . $text . " ";

$regexp="/(\s|[а-я]+)([a-z])(\s|[а-я]+)/ui";
$text = preg_replace($regexp,"$1[$2]$3",$text);
echo "{$text} - ошибки выделны в квадратные скобки.\n";
$text = strtr ($text,$letters);
echo "{$text} - ошибки были исправлены.\n";

?>
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7