Home  >  Article  >  Backend Development  >  PHP URL function example explanation_PHP tutorial

PHP URL function example explanation_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:41:29907browse

  1. $url ="http://www.ite5e.com";
  2. echo urlencode($url); Encoded string
  3. ?>
  4. $url = "http://www.ite5e.com" ; <<> <$> $ newurl = urlencode ($ url); // First encoding the $ URL
  5. Echo Urldecode ($ newurl); // >?>

http://www.bkjia.com/PHPjc/486135.html

www.bkjia.com

http: //www.bkjia.com/PHPjc/486135.htmlTechArticle?php $url ="http://www.ite5e.com"; echo urlencode($url); //Output the encoded string? ?php $url = "http://www.ite5e.com"; $newurl = urlencode($url); //First encode $url...
Statement:
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