EDIT: Forgot to mention that this is from Final Fantasy
Code: Select all
<?php
$albh = 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");
$engh = array("e","p","s","t","i","w","k","n","u","v","g","c","l","r","y","b","w","h","m","d","o","f","x","q","a","g");
$string = "hello";
for($i = 0; $i < strlen($string); $i++)
{
for($j = 0; $j < 26; $j++)
{
if($string[$i] == $engh[$j])
{
$string[$i] = $albh[$j];
break;
}
}
}
echo $string;
?>