Home  >  Article  >  Backend Development  >  How to use PHP's urlencode function

How to use PHP's urlencode function

WBOY
WBOYOriginal
2016-07-25 09:11:241102browse
  1. $interest = "arts";
  2. $homepage = "http://www.oschina.net";
  3. $query = "homepage=".urlencode( $homepage );
  4. $query .= "&interest=".urlencode( $interest );
  5. echo $query;
  6. ?>
复制代码


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