php URL编码解码函数代码
更新时间:2009年03月10日 21:44:50 作者:
php URL编码解码函数代码,后面都有详细的说明。最近的php将会让你学到更多。
复制代码 代码如下:
<?php
$url = "https://www.jb51.net";
echo urlencode($url); //输出编码后的字符串
?>
复制代码 代码如下:
<?php
$url = "https://www.jb51.net";
$newurl = urlencode($url); //首先对$url进行编码
echo urldecode($newurl); //输出解码后的字符串
?>
相关文章
PHP PDOStatement::bindColumn讲解
今天小编就为大家分享一篇关于PHP PDOStatement::bindColumn讲解,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧2019-01-01


最新评论