提交 5a09e1ae 编写于 作者: D devil_gong

细节优化

上级 3aad10e5
......@@ -94,7 +94,14 @@ function StrToAscii($str)
$str = mb_convert_encoding($str, 'GB2312');
for($i=0;$i<strlen($str);$i++){
$temp_str = dechex(ord($str[$i]));
$change_after .= $temp_str[1].$temp_str[0];
if(isset($temp_str[1]))
{
$change_after .= $temp_str[1];
}
if(isset($temp_str[0]))
{
$change_after .= $temp_str[0];
}
}
}
return strtoupper($change_after);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册