电脑安全

您当前的位置:主页 > 电脑安全 >

网页文字简繁转换函数-网络编程

来源:[db:来源]标题:   function    编辑:电脑技术全能网 时间:2019-09-19 18:28

原标题:网页文字简繁转换函数-网络编程
   <?function isgb($code){if (strlen($code)>=2){$code=strtok($code,"");if ((ord($code[0]) < 161)||(ord($code[0]) >= 247)){return (0);}else{if ((ord($code[1]) <= 161)||(ord($code[1]) >= 254)){return (0);}else{return (1);}}}else{return (1);}}function gboffset($code){if (strlen($code) >= 2){$code=strtok($code,"");return ((ord($code[0]) - 161) * 94 (ord($code[1]) - 161));}else{return(-1);}}function wordtostring($code){return (chr(hexdec(substr($code,0,2))).chr(hexdec(substr($code,2,2))));}function gbtobig5($code)

上一篇:用JavaScript PHP随机显示图片-网络编程

下一篇:没有了