diff --git "a/Retos/Reto #15 - AUREBESH [F\303\241cil]/php/kodenook.php" "b/Retos/Reto #15 - AUREBESH [F\303\241cil]/php/kodenook.php" new file mode 100644 index 0000000000..57c5cb5997 --- /dev/null +++ "b/Retos/Reto #15 - AUREBESH [F\303\241cil]/php/kodenook.php" @@ -0,0 +1,55 @@ + 'aur', + 'b' => 'besh', + 'c' => 'cresh', + 'd' => 'dorn', + 'e' => 'esh', + 'f' => 'forn', + 'g' => 'gol', + 'h' => 'herf', + 'i' => 'is', + 'j' => 'jenth', + 'k' => 'kran', + 'l' => 'lor', + 'm' => 'mar', + 'n' => 'nal', + 'o' => 'oth', + 'p' => 'pal', + 'q' => 'quen', + 'r' => 'res', + 's' => 'sin', + 't' => 'tor', + 'u' => 'ul', + 'v' => 'ver', + 'w' => 'wor', + 'x' => 'xesh', + 'y' => 'yen', + 'z' => 'zorn', + ]; + + $txt = str_split(mb_strtolower($txt)); + + foreach ($txt as $value) { + array_push($trans, $letters[$value] ?? $value); + } + + return implode('', $trans); +} + +echo aurebesh('hello there');