All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
PHP汉字区位码相互转换源代码_[PHP教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/2/17 7:37:54 Browse times: 441 Comment times: 0

PHP汉字区位码相互转换源代码_[PHP教程]


Head photo

Go homepage
Upload pictures
Write articles

PHP汉字区位码相互转换源代码_[PHP教程]

















源代码如下:
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">



无标题文档







align="center" cellpadding="0" cellspacing="0">







class="STYLE1">汉字区位码查询系统












"">






















结束





















There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.