没准能用得到呢?源码如下
$url = 'www.baidu.com';
$out = '';
for($i=0;$i
$out .= '%'.dechex(ord(substr($url,$i,1)));
}
echo strtoupper($out);
?>
其中ord用于返回字符的ASCII码
dechex 将十进制转换为十六进制
strtoupper 将字符转换为大写
http://bbs.dedecms.com/80555.html
这种链接搜索引擎是认的
没准能用得到呢?源码如下
$url = 'www.baidu.com';
$out = '';
for($i=0;$i
$out .= '%'.dechex(ord(substr($url,$i,1)));
}
echo strtoupper($out);
?>
其中ord用于返回字符的ASCII码
dechex 将十进制转换为十六进制
strtoupper 将字符转换为大写
http://bbs.dedecms.com/80555.html
这种链接搜索引擎是认的
for($i=0;$i