时间:2021-07-01 10:21:17 帮助过:36人阅读
<?php $url = "http://www.gxlcms.com"; echo urlencode($url); //输出编码后的字符串 ?>
<?php $url = "http://www.gxlcms.com"; $newurl = urlencode($url); //首先对$url进行编码 echo urldecode($newurl); //输出解码后的字符串 ?>
更多php URL编码解码函数代码相关文章请关注PHP中文网!