php URL编码解码函数代码_PHP

WBOY
Release: 2016-06-01 12:23:30
Original
1178 people have browsed it
复制代码 代码如下:
$url = "http://www.bitsCN.com";
echo urlencode($url); //输出编码后的字符串
?>


复制代码 代码如下:
$url = "http://www.bitsCN.com";
$newurl = urlencode($url); //首先对$url进行编码
echo urldecode($newurl); //输出解码后的字符串
?>
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!