|
$string = @$_GET['q'] ;
###################
# Letters to images
# Ben Wasley
# BenWconsulting.com
###################
function letters_to_images($string)
{
//Make sure your letters are a.gif, b.gif, c.gif, etc
$img_dir = "../alphabet/";
$letters = substr("".$string."".$letters, 0);
$space = "_";
$letters = str_replace(" ",$space,$letters);
//Replace chars with big letter alphabet i.e. A.gif, B.gif, C.gif
//Add new chars if you like
$letters = strtolower($letters);
$letters = str_replace("th","1",$letters);
$letters = str_replace("sh","2",$letters);
$letters = str_replace("ch","3",$letters);
$letters = str_replace("","E",$letters);
$letters = str_replace("#","P",$letters);
$letters = str_replace("u!","4",$letters);
$letters = str_replace("o!","4",$letters);
$letters = str_replace("w!","4",$letters);
$letters = str_replace("a!","5",$letters);
$letters = str_replace("b!","Q",$letters);
$letters = str_replace("%","C",$letters);
$letters = str_replace("i!","6",$letters);
$letters = str_replace("e!","6",$letters);
$letters = str_replace("y!","6",$letters);
$letters = str_replace(":","D",$letters);
$result = preg_split("//", $letters);
for($i = 0; $i <= 40; $i++) {
if ($result[$i] != "") {
$html_result .= "";
}
}
return $html_result;
}
print"".letters_to_images($string)."";
?> |
|
|
Here you can learn how your name will look in our 18k gold herogliphic letter.
Notice: Some english letters may have more than one herogliphic letter, for you to see other herogliphic letter for your english ones, please use the exclamation mark after these letters like this: "a!" or "e!" instead of only "a" or "e".
These letters with multiple herogliphic letter are the a,e,o,u,w,i and y. |
|