<?php
$url = "http://www.gimoo.net";
echo urlencode($url); //输出编码后的字符串
?>
<?php
$url = "http://www.gimoo.net";
$newurl = urlencode($url); //首先对$url进行编码
echo urldecode($newurl); //输出解码后的字符串
?>
-----正文到此结束-----
<?php
$url = "http://www.gimoo.net";
echo urlencode($url); //输出编码后的字符串
?>
<?php
$url = "http://www.gimoo.net";
$newurl = urlencode($url); //首先对$url进行编码
echo urldecode($newurl); //输出解码后的字符串
?>
标签:
发表评论 取消回复