I want to make a text generator to give me texts with stylish letters like 鮩†ø
and more instead of eRCTo
.
I found this:
/*
Code by ʍɨȼhą€ℓ
*/
$name = str_split('michael'); //Enter your name here
$letters = array("a"=>"ą", "b"=>"β", "c"=>"ȼ", "d"=>"ď", "e"=>"€", "f"=>"ƒ", "g"=>"ǥ", "h"=>"h", "i"=>"ɨ", "j"=>"j", "k"=>"Ќ", "l"=>"ℓ", "m"=>"ʍ", "n"=>"ɲ", "o"=>"๏", "p"=>"ρ", "q"=>"ǭ", "r"=>"я", "s"=>"$", "t"=>"ţ", "u"=>"µ", "v" => "ש","w"=>"ώ", "x"=>"ж", "y"=>"¥", "z"=>"ƶ");
$string = '';
$output = array();
foreach ($name as $key) {
if (array_key_exists($key, $letters)) {
$output[$key] = $letters[$key];
}
}
foreach ($output as $out)
{
$string .= "$out";
}
echo $string;
It works with the name Michael great! But if I use aaabbcdd
it returns ąβȼď
.
I want it to return duplicate letters too! What I should do?
Thanks For Every Helps. I changed the whole code. if anyone wanna the new and better code I'll put it to answers.