How can I avoid php automatically changing & times to ×?

Source: Internet
Author: User
How can I prevent php from automatically transferring & times to the API of the other party? a & timestamp value needs to be sent. as a result, PHP directly converts & timestamp to × tamp, which is a headache.


Reply to discussion (solution)

Impossible!
Paste your sample code

I have encountered this problem several times.
When the browser parses html, it will display the string '×' as the symbol' ×'. when you view the source code of the webpage, you will find that the string is not converted into '×', but it is displayed on the front end'

// Parameter list $ signstrarr = array (); $ signstrarr ['app _ key'] = $ this-> app_key; $ signstrarr ['format'] = $ this-> format; $ signstrarr ['method'] = $ this-> method; $ signstrarr ['card _ id'] = $ card_id; $ signstrarr ['password'] = $ password; // $ signstrarr ['Sign _ method'] = $ this-> sign_method; $ signstrarr ['timestamp'] = $ this-> timestamp; $ signstrarr ['V'] = $ this-> v; $ signstrarr ['Sign _ v'] = $ this-> sign_v; ksort ($ signstrarr ); // sort the buttons in ascending order ($ signstrarr as $ key => $ value) {$ signstr. = $ key. $ value; $ query. = $ key. '= '. $ value. '&'; echo "&". $ key."
"; // Here the output is XX tamp}

The problem is that he switched the source code of the web page

sign_v=1×tamp=20120327105202

This is what you see in the address bar of the browser. what actually transmitted is not

Don't bother, as long as the source code is normal, I just read it. the Source Code hasn't changed here. what about the source code change?

It did not change, haha.

Change & to & remember extra points

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.