php URL函数实例讲解
- <?php
- $url ="http://www.ite5e.com";
- echo urlencode($url); //输出编码后的字符串
- ?>
- <?php
- $url = "http://www.ite5e.com";
- $newurl = urlencode($url); //首先对$url进行编码
- echo urldecode($newurl); //输出解码后的字符串
- ?>
/phprm/24514.htmlwww.phpzy.comtrue/phprm/24514.htmlTechArticlephp URL函数实例讲解 ?php $url ="http://www.ite5e.com"; echo urlencode($url); //输出编码后的字符串 ? ?php $url = "http://www.ite5e.com"; $newurl = urlencode($url); //首先对$url进行编码 echo urldecode($newurl); //输出解...
PHP之友评论