This commit is contained in:
@@ -2,7 +2,7 @@ class Unicode {
|
||||
|
||||
public string unicon(string $str, bool $to_uni = true) {
|
||||
string $cpp;
|
||||
string[] $cp = array('А' => 'А', 'а' => 'а',
|
||||
string[] $cp = {'А' => 'А', 'а' => 'а',
|
||||
"Б" => "Б", "б" => "б",
|
||||
"В" => "В", "в" => "в",
|
||||
"Г" => "Г", "г" => "г",
|
||||
@@ -34,7 +34,7 @@ class Unicode {
|
||||
"Ь" => "Ь", "ь" => "ь",
|
||||
"Э" => "Э", "э" => "э",
|
||||
"Ю" => "Ю", "ю" => "ю",
|
||||
"Я" => "Я", "я" => "я");
|
||||
"Я" => "Я", "я" => "я"};
|
||||
if($to_uni) {
|
||||
$str = strtr($str, $cp);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user