=0;$i--){if($d[$i][1]160){ $q=ord(">
时间:2021-07-01 10:21:17 帮助过:10人阅读
0&&$num<160){ return chr($num); } elseif($num<-20319||$num>-10247){ return ""; }else{ for($i=count($d)-1;$i>=0;$i--){if($d[$i][1]<=$num)break;} return $d[$i][0]; } } function c($str){ $ret=""; for($i=0;$i160){ $q=ord(substr($str,++$i,1)); $p=$p*256+$q-65536; } $ret.=g($p); } return $ret; } $hz = $_POST[hz]; echo c($hz); ?>
http://www.bkjia.com/PHPjc/1079576.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1079576.htmlTechArticle用PHP把汉字转化为拼音,PHP汉字转化拼音 pre class="brush:php"?php $d=array( array("a",-20319), array("ai",-20317), array("an",-20304), array("ang",-20295), array("ao...