class="STYLE1">汉字区位码查询系统 http://www.bkji">
时间:2021-07-01 10:21:17 帮助过:21人阅读
global $PHP_SELF;
//echo $PHP_SELF;
$t1=$_POST['textfield1'];
$t2=$_POST['textfield2'];
$t3=$_POST['textfield3'];
$t4=$_POST['textfield4'];
// 汉字--区位码
if($t1!=""){
$t2= sprintf("%02d%02d",ord($t1[0])-160,ord($t1[1])-160);
//echo $t2;
}
// 区位码--汉字
if($t3!=""){
$t4 = chr(substr($t3,0,2)+160).chr(substr($t3,2,2)+160);
//echo $t4;
}
?>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
无标题文档
class="STYLE1">汉字区位码查询系统 |
|
http://www.bkjia.com/PHPjc/321962.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/321962.htmlTechArticle 代码如下:?php global $PHP_SELF; //echo $PHP_SELF; $t1=$_POST['textfield1']; $t2=$_POST['textfield2']; $t3=$_POST['textfield3']; $t4=$_POST['textfield4']; // 汉字...