Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$letter_array = array("a"=>"1","b"=>"2","c"=>"3","d"=>"4","e"=>"5");
$word = $_GET['word'];
echo strtr($word,$letter_array);
<?php
$text = "abcde";
$text = strtolower($text);
$bukvi = array("/a/","/b/","/c/","/d/","/e/","/f/","/g/","/h/","/i/","/j/","/k/","/l/","/m/","/n/","/o/","/p/","/q/","/r/","/s/","/t/","/u/","/v/","/w/","/x/","/y/","/z/");
$cifri = array("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","26");
echo preg_replace($bukvi,$cifri,$text);
?>
<?php
$letter_array = array("a"=>"1","b"=>"2","c"=>"3","d"=>"4","e"=>"5");
$word = "ABCDE";
$word = strtolower($word);
echo strtr($word,$letter_array);
?>
A- ka
B - zu
C - mi
D - te
E - ku
F - lu
G - ji
H - ri
I - ki
J - zu
K - me
L - ta
M - rin
N - to
O - mo
P - no
Q - ke
R - shi
S - ari
T - chi
U - do
V - ru
W - mei
X - na
Y - fu
Z - z
adrian каза:Много просто. Вместо цифрите пишеш буквите на японски.
<?php
if($_POST['submit'])
{
$text = htmlspecialchars($_POST['name']);
$text = strtolower($text);
$letter_array = array("a"=>"ka","b"=>"zu","c"=>"mi","d"=>"te","e"=>"ku","f"=>"lu","g"=>"ji","h"=>"ri","i"=>"ki","j"=>"zu","k"=>"me","l"=>"ta","m"=>"rin","n"=>"to","o"=>"mo","p"=>"no","q"=>"ke","r"=>"shi","s"=>"ari","t"=>"chi","u"=>"do","v"=>"ru","w"=>"mei","x"=>"na","y"=>"fu","z"=>"z");
echo strtr($text,$letter_array);
}
else {
echo '<form method="post" action="">
<input type="text" name="name" />
<input type="submit" name="submit" value="Send" />
</form>';
}
?>
adrian каза:<?php
if($_POST['submit'])
{
$text = htmlspecialchars($_POST['name']);
$text = strtolower($text);
$letter_array = array("a"=>"ka","b"=>"zu","c"=>"mi","d"=>"te","e"=>"ku","f"=>"lu","g"=>"ji","h"=>"ri","i"=>"ki","j"=>"zu","k"=>"me","l"=>"ta","m"=>"rin","n"=>"to","o"=>"mo","p"=>"no","q"=>"ke","r"=>"shi","s"=>"ari","t"=>"chi","u"=>"do","v"=>"ru","w"=>"mei","x"=>"na","y"=>"fu","z"=>"z");
echo strtr($text,$letter_array);
}
else {
echo '<form method="post" action="">
<input type="text" name="name" />
<input type="submit" name="submit" value="Send" />
</form>';
}
?>