! About the "+" number in phpurlencode

Source: Internet
Author: User
Help! The & quot; + & quot; in phpurlencode is URL encoded and decoded with urldecode '', I don't know whether it is blank or empty. it seems like a space. In short, it's not the original '+' number. I should ask for help! About the "+" number in php urlencode
After the "+" in php is encoded by urlencode,


The URL is decoded with urldecode and changed to '', which is null or empty. it seems like a space,

In short, it is not the original '+' number. how can I solve this problem to get the original "+" number?

------ Solution --------------------
Discussion

This also occurs in my tests:
PHP code

# Sending page
$ Param = "1 + 1 ";
Echo urlencode ($ param )."
";
# 1% 2B1
Header ("Location:./test17.php /? Can = ". urlencode ($ param ));
# Http: // path/test/test_csdn/test17.php /? Can = 1% 2B1

# Receiving Page
I ......

------ Solution --------------------
Discussion

So what is the use of this urldecode function?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.