PHP头条
热点:

php URL函数实例讲解


  1. <?php
  2. $url ="http://www.ite5e.com";
  3. echo urlencode($url);                           //输出编码后的字符串
  4. ?>
  5. <?php
  6. $url = "http://www.ite5e.com";
  7. $newurl = urlencode($url);                          //首先对$url进行编码
  8. echo urldecode($newurl);                            //输出解码后的字符串
  9. ?>

www.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之友评论

今天推荐