php URL编码解码函数
2009-06-28 09:23:57 来源:WEB开发网核心提示:<?php$url =”http://www.2881.com“; echo urlencode($url); //输出编码后的字符串 ?> <?php$url = “http://www.2881.com“; $newurl = urlencode($url); //首先对$url进行编码 ech
<?php
$url =”http://www.2881.com“;
echo urlencode($url); //输出编码后的字符串
?>
<?php
$url = “http://www.2881.com“;
$newurl = urlencode($url); //首先对$url进行编码
echo urldecode($newurl); //输出解码后的字符串
?>
更多精彩
赞助商链接