Character distance by Endres

<?$s=trim(fgets(STDIN));foreach(str_split($s)as$c)if($a=strrpos($s,$c)-$i++)echo"$c: $a\x0d
";

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page