コードをコピーします コードは次のとおりです:
関数 pykey( $py_key)
{
$pinyin = 65536 + pys($py_key);
if ( 45217 <= $pinyin && $pinyin <= 45252 )
{
$zimu = "A";
$zimu を返す;
}
if ( 45253 <= $pinyin && $pinyin <= 45760 )
{
$zimu = "B";
$zimu を返す;
}
if ( 45761 <= $pinyin && $pinyin <= 46317 )
{
$zimu = "C";
$zimu を返す;
}
if ( 46318 <= $pinyin && $pinyin <= 46825 )
{
$zimu = "D";
$zimu を返す;
}
if ( 46826 <= $pinyin && $pinyin <= 47009 )
{
$zimu = "E";
$zimu を返す;
}
if ( 47010 <= $pinyin && $pinyin <= 47296 )
{
$zimu = "F";
$zimu を返す;
}
if ( 47297 <= $pinyin && $pinyin <= 47613 )
{
$zimu = "G";
$zimu を返す;
}
if ( 47614 <= $pinyin && $pinyin <= 48118 )
{
$zimu = "H";
$zimu を返す;
}
if ( 48119 <= $pinyin && $pinyin <= 49061 )
{
$zimu = "J";
$zimu を返す;
}
if ( 49062 <= $pinyin && $pinyin <= 49323 )
{
$zimu = "K";
$zimu を返す;
} ??
$zimu を返す;
}
if ( 49896 <= $pinyin && $pinyin <= 50370 )
{
$zimu = "M";
$zimu を返す;
}
if ( 50371 <= $pinyin && $pinyin <= 50613 )
{
$zimu = "N";
$zimu を返す;
}
if ( 50614 <= $pinyin && $pinyin <= 50621 )
{
$zimu = "O";
$zimu を返す;
}
if ( 50622 <= $pinyin && $pinyin <= 50905 )
{
$zimu = "P";
$zimu を返す;
}
if ( 50906 <= $pinyin && $pinyin <= 51386 )
{
$zimu = "Q";
$zimu を返す;
}
if ( 51387 <= $pinyin && $pinyin <= 51445 )
{
$zimu = "R";
$zimu を返す; S
$zimu を返す; ;
$zimu を返す;
}
if ( 52698 <= $pinyin && $pinyin <= 52979 )
{
$zimu = "W";
$zimu を返す;
}
if ( 52980 <= $pinyin && $pinyin <= 53640 )
{
$zimu = "X";
$zimu を返す;
}
if ( 53689 <= $pinyin && $pinyin <= 54480 )
{
$zimu = "Y";
$zimu を返す;
}
if ( 54481 <= $pinyin && $pinyin <= 62289 )
{
$zimu = "Z";
$zimu を返す;
}
$zimu = $py_key;
$zimu を返す;
}
function pys( $pysa )
{
$pyi = "";
$i=0;
for ( ; $i {
$_obfuscate_8w= ord( substr( $pysa,$i,1) );
if ( 160 < $_obfuscate_8w)
{
$_obfuscate_Bw = ord( substr( $pysa, $i++, 1 ) );
$_obfuscate_8w = $_obfuscate_8w * 256 + $_obfuscate_Bw - 65536;
}
$pyi.= $_obfuscate_8w;
}
$pyi を返す;
}
$letter = pykey("中华人民共和国");
エコー$レター;
?>
http://www.bkjia.com/PHPjc/318921.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/318921.html技術記事复制代码代码如下: ? functionpykey($py_key) { $pinyin=65536+pys($py_key); if(45217=$pinyin$pinyin=45252) { $zimu="A"; $zimu を返します。 } if(45253=$pinyin$pinyin=45760) { $zimu=...