时间:2021-07-01 10:21:17 帮助过:15人阅读
代码如下:
$encryption = "username";
echo base64_encode ($encryption);//echo "dXNlcm5hbWU= ";
echo "
";
echo urlencode("http://".$encryption);//echo " http%3A%2F%2Fusername ";
echo "
";
echo sha1($encryption);//echo "249ba36000029bbe97499c03db5a9001f6b734ec"
echo "
";
?>
以上就介绍了urlencode php中可能用来加密字符串的函数[base64_encode、urlencode、sha1],包括了urlencode方面的内容,希望对PHP教程有兴趣的朋友有所帮助。