Home  >  Article  >  Backend Development  >  怎么将英文和数字urlencode

怎么将英文和数字urlencode

WBOY
WBOYOriginal
2016-06-13 12:42:43925browse

如何将英文和数字urlencode
如果简单使用urlencode

英文和数字并不会被编码而是直接跳过.

比如
'AAAAA中文22222'
编码后
'AAAAA%D6%D0%CE%C422222'

实际上AAAAA我希望编码成
%41%41%41%41%41

22222
编码成
%32%32%32%32%32

之类的

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
Previous article: sip种 php Next article: php json_encode有关问题